mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
ObjectAuthorization: Check whether the permission isn't within the refusals
This commit is contained in:
parent
cbb5bc441f
commit
5ff0793036
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue