mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-11-21 20:28:11 +01:00
fixed resource voter
This commit is contained in:
parent
88cb258c2b
commit
72fbc9e20e
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class ResourceVoter extends Voter {
|
||||||
$parentResource = $this->resourceService->getParentResource($resource);
|
$parentResource = $this->resourceService->getParentResource($resource);
|
||||||
|
|
||||||
if(!is_null($parentResource)) {
|
if(!is_null($parentResource)) {
|
||||||
return $this->isResourceManager($user, $resource);
|
return $this->isResourceManager($user, $parentResource);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue