ObjectAuthorization: Check whether the permission isn't within the refusals

This commit is contained in:
Yonas Habteab 2021-08-30 11:00:26 +02:00 committed by Johannes Meyer
parent cbb5bc441f
commit 5ff0793036

View file

@ -197,7 +197,7 @@ class ObjectAuthorization
}
foreach ($this->getAuth()->getUser()->getRoles() as $role) {
if (! $role->grants($permission)) {
if (! $role->grants($permission) || $role->denies($permission)) {
continue;
}