Fix permissions legal and medical vor listings
This commit is contained in:
@@ -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