mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
ObjectAuthorization: Gracefully handle incomplete objects in grantsOn()
This commit is contained in:
parent
7ed4570a31
commit
73a95e055b
1 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ class ObjectAuthorization
|
|||
|
||||
$tableName = $for->getTableName();
|
||||
$uniqueId = $for->{$for->getKeyName()};
|
||||
if (! isset($uniqueId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (! isset(self::$knownGrants[$tableName][$uniqueId])) {
|
||||
$self->loadGrants(
|
||||
get_class($for),
|
||||
|
|
|
|||
Loading…
Reference in a new issue