diff --git a/library/Icingadb/Authentication/ObjectAuthorization.php b/library/Icingadb/Authentication/ObjectAuthorization.php index ba5aa17e..0792988b 100644 --- a/library/Icingadb/Authentication/ObjectAuthorization.php +++ b/library/Icingadb/Authentication/ObjectAuthorization.php @@ -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),