mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-11 15:38:40 +00:00
Fix permission condition
This commit is contained in:
parent
a0212b394d
commit
4d56463042
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user