Rewrite of the authentication and authorization system
This commit is contained in:
@@ -137,7 +137,7 @@ class Customfilter extends Base
|
||||
{
|
||||
$user_id = $this->userSession->getId();
|
||||
|
||||
if ($filter['user_id'] != $user_id && (! $this->projectPermission->isManager($project['id'], $user_id) || ! $this->userSession->isAdmin())) {
|
||||
if ($filter['user_id'] != $user_id && ($this->projectUserRole->getUserRole($project['id'], $user_id) === Role::PROJECT_MANAGER || ! $this->userSession->isAdmin())) {
|
||||
$this->forbidden();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user