Fix permissions legal and medical vor listings
This commit is contained in:
1 parent
7c5292367d
commit
f78d30fed0
3 files changed
+1
-14
No files matched your search
@@ -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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user