Pass object to isGranted if action is VIEW or EDIT in list identifier

In general in the ``ListMapper->addIdentifier()`` method, we will use the ``show`` or the ``edit`` route. I have a situation where I need to use the ``create`` route.

In this case, the object if passed to the ``isGranted`` method, which then returns ``false`` (ie ``isGranted('CREATE', $object)``)

This PR checks if the action is ``VIEW`` or ``EDIT`` to decide if the object must be passed to the ``isGranted`` method.