|
@@ -45,7 +45,8 @@ class RoleSecurityHandler implements SecurityHandlerInterface
|
|
}
|
|
}
|
|
|
|
|
|
try {
|
|
try {
|
|
- return $this->securityContext->isGranted($this->superAdminRoles) || $this->securityContext->isGranted($attributes);
|
|
|
|
|
|
+ return $this->securityContext->isGranted($this->superAdminRoles)
|
|
|
|
+ || $this->securityContext->isGranted($attributes, $object);
|
|
} catch (AuthenticationCredentialsNotFoundException $e) {
|
|
} catch (AuthenticationCredentialsNotFoundException $e) {
|
|
return false;
|
|
return false;
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|