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

@@ -72,13 +72,6 @@ class DocumentRepositoriesExtension extends ServiceEntityRepository
}
if (!$User->getAdminMode()) {
if (!$User->hasPermission('general_legal_view')) {
$this->qb->andWhere('d.needLegalAccess = 0');
}
if (!$User->hasPermission('general_medical_view')) {
$this->qb->andWhere('d.needMedicalAccess = 0');
}
if (!$User->hasPermission('group_administrate')) {
$this->qb->andWhere('d.needGroupAdministration = 0');
}