Release 2.57 (#5929)
This commit is contained in:
@@ -113,6 +113,9 @@ final class TimesheetController extends BaseApiController
|
||||
|
||||
if (!$seeAll) {
|
||||
foreach ($userRepository->findByIds($users) as $user) {
|
||||
if (!$this->isGranted('access_user', $user)) {
|
||||
throw $this->createAccessDeniedException('Cannot access user: ' . $user->getId());
|
||||
}
|
||||
$query->addUser($user);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user