Fix permission check before "Assign to me"
Users who should not be able to change assignee cannot "assign to me" Fixes #4121
This commit is contained in:
@@ -22,6 +22,10 @@ class TaskModificationController extends BaseController
|
||||
if (! $this->helper->projectRole->canUpdateTask($task)) {
|
||||
throw new AccessForbiddenException(t('You are not allowed to update tasks assigned to someone else.'));
|
||||
}
|
||||
|
||||
if (! $this->helper->projectRole->canChangeAssignee($task)) {
|
||||
throw new AccessForbiddenException(t('You are not allowed to change the assignee.'));
|
||||
}
|
||||
|
||||
$this->taskModificationModel->update($values);
|
||||
$this->redirectAfterQuickAction($task);
|
||||
|
||||
Reference in New Issue
Block a user