Fix permissions legal and medical vor listings

This commit is contained in:
Xbird
2022-05-10 14:48:46 +00:00
parent 7c5292367d
commit f78d30fed0
3 changed files with 1 additions and 14 deletions

View File

@@ -30,12 +30,6 @@ class DocumentVoter extends VoterInterface
//reset prefix, maybe voter has been used before
$this->setPermissionsPrefix(null);
if ($subject->getNeedLegalAccess() && !$this->hasPermission('general_legal_view')) {
return false;
}
if ($subject->getNeedMedicalAccess() && !$this->hasPermission('general_medical_view')) {
return false;
}
if ($subject->getNeedGroupAdministration() && !$this->hasPermission('group_administrate')) {
return false;
}