mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-02-13 13:18: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
|
if (!($task->getCreatedBy()->getId() === $accountId
|
||||||
|| $task->isCc($accountId)
|
|| $task->isCc($accountId)
|
||||||
|| $task->isForwarded($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())
|
PermissionType::READ, 1, $this->app->appName, self::MODULE_ID, PermissionState::TASK, $task->getId())
|
||||||
) {
|
) {
|
||||||
$view->setTemplate('/Web/Backend/Error/403_inline');
|
$view->setTemplate('/Web/Backend/Error/403_inline');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user