You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elements where an event handler for PermissionEvents::PRE_CHECK sets isGranted to false should be returned as null or filtered out of the result of a GraphQL query when NOT_ALLOWED_POLICY_NULL is used.
Just like an exception is thrown when NOT_ALLOWED_POLICY_EXCEPTION is used in the same situation.
Actual behavior
The contents of isGranted are completely ignored. It can be easily seen here that the value of $event->isGranted() has no effect if PimcoreDataHubBundle::getNotAllowedPolicy() !== PimcoreDataHubBundle::NOT_ALLOWED_POLICY_EXCEPTION:
Expected behavior
Elements where an event handler for
PermissionEvents::PRE_CHECK
setsisGranted
to false should be returned as null or filtered out of the result of a GraphQL query when NOT_ALLOWED_POLICY_NULL is used.Just like an exception is thrown when NOT_ALLOWED_POLICY_EXCEPTION is used in the same situation.
Actual behavior
The contents of
isGranted
are completely ignored. It can be easily seen here that the value of$event->isGranted()
has no effect ifPimcoreDataHubBundle::getNotAllowedPolicy() !== PimcoreDataHubBundle::NOT_ALLOWED_POLICY_EXCEPTION
:data-hub/src/WorkspaceHelper.php
Lines 233 to 248 in 90aabfc
Steps to reproduce
Register a handler for PermissionEvent and set isGranted to false:
The text was updated successfully, but these errors were encountered: