Regular users can remove only their own tasks
This commit is contained in:
@@ -289,6 +289,10 @@ class Task extends Base
|
||||
{
|
||||
$task = $this->getTask();
|
||||
|
||||
if (! $this->taskPermission->canRemoveTask($task)) {
|
||||
$this->forbidden();
|
||||
}
|
||||
|
||||
if ($this->request->getStringParam('confirmation') === 'yes') {
|
||||
|
||||
$this->checkCSRFParam();
|
||||
|
||||
Reference in New Issue
Block a user