From 72fbc9e20e93b797fd0cf990c33b87b290239c73 Mon Sep 17 00:00:00 2001 From: Jonathan Treffler Date: Thu, 7 Nov 2024 11:03:36 +0100 Subject: [PATCH] fixed resource voter --- lib/Security/ResourceVoter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }