Fix permission condition

This commit is contained in:
Dennis Eichhorn 2017-09-16 11:47:52 +02:00
parent a0212b394d
commit 4d56463042

View File

@ -166,7 +166,7 @@ class Controller extends ModuleAbstract implements WebInterface
if (!($task->getCreatedBy()->getId() === $accountId
|| $task->isCc($accountId)
|| $task->isForwarded($accountId))
|| !$this->app->accountManager->get($accountId)->hasPermission(
&& !$this->app->accountManager->get($accountId)->hasPermission(
PermissionType::READ, 1, $this->app->appName, self::MODULE_ID, PermissionState::TASK, $task->getId())
) {
$view->setTemplate('/Web/Backend/Error/403_inline');