diff options
| author | Rafael de Camargo <rafaelcamargo@MacBook-Air-de-Rafael.local> | 2019-01-10 01:17:03 -0200 | 
|---|---|---|
| committer | Rafael de Camargo <rafaelcamargo@MacBook-Air-de-Rafael.local> | 2019-01-10 01:17:03 -0200 | 
| commit | f79a2ee5e7402419293796da4fd135837ec2d126 (patch) | |
| tree | bfd8cfa7d095ce877d868a5e7edf2b774d2df8c7 /app/Controller/TaskModificationController.php | |
| parent | 0deaeb58e60097b7f0882a05481253ff99a5a65a (diff) | |
Fix permission check before "Assign to me"
Users who should not be able to change assignee cannot "assign to me"
Fixes #4121
Diffstat (limited to 'app/Controller/TaskModificationController.php')
| -rw-r--r-- | app/Controller/TaskModificationController.php | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/app/Controller/TaskModificationController.php b/app/Controller/TaskModificationController.php index dcf9ec2a..b253428f 100644 --- a/app/Controller/TaskModificationController.php +++ b/app/Controller/TaskModificationController.php @@ -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); | 
