added domain logic for permission checks (#1803)
This commit is contained in:
@@ -549,7 +549,7 @@ class TimesheetRepository extends EntityRepository
|
||||
}
|
||||
|
||||
// make sure that admins see all timesheet records
|
||||
if (null !== $user && ($user->isSuperAdmin() || $user->isAdmin())) {
|
||||
if (null !== $user && $user->canSeeAllData()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user