diff --git a/lib/Security/ResourceVoter.php b/lib/Security/ResourceVoter.php index bd3a1b1..8854ec9 100644 --- a/lib/Security/ResourceVoter.php +++ b/lib/Security/ResourceVoter.php @@ -83,7 +83,7 @@ class ResourceVoter extends Voter { $parentResource = $this->resourceService->getParentResource($resource); if(!is_null($parentResource)) { - return $this->isResourceManager($user, $resource); + return $this->isResourceManager($user, $parentResource); } }