mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
handle case when HasScopeInterface has a null scope
This commit is contained in:
parent
135691f0fc
commit
ab52528f71
@ -106,6 +106,9 @@ class AuthorizationHelper
|
||||
// perform check on scope if necessary
|
||||
if ($entity instanceof HasScopeInterface) {
|
||||
$scope = $entity->getScope();
|
||||
if ($scope === NULL) {
|
||||
return true;
|
||||
}
|
||||
if ($scope->getId() === $roleScope
|
||||
->getScope()->getId()) {
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user