fix getters/setters

This commit is contained in:
Dennis Eichhorn 2023-05-31 12:03:53 +00:00
parent c7119f763d
commit bfec89b466
2 changed files with 11 additions and 4 deletions

View File

@ -339,8 +339,15 @@ final class BackendController extends Controller
$view->data['categories'] = $categories; $view->data['categories'] = $categories;
$view->data['document'] = $document; $view->data['document'] = $document;
$view->['editable'] = $this->app->accountManager->get($accountId)->hasPermission( $view->data['editable'] = $this->app->accountManager->get($accountId)
PermissionType::MODIFY, $this->app->unitId, $this->app->appId, self::NAME, PermissionCategory::WIKI, $document->id); ->hasPermission(
PermissionType::MODIFY,
$this->app->unitId,
$this->app->appId,
self::NAME,
PermissionCategory::WIKI,
$document->id
);
return $view; return $view;
} }

View File

@ -64,7 +64,7 @@ class Controller extends ModuleAbstract
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $providing = []; public static array $providing = [];
/** /**
* Dependencies. * Dependencies.
@ -72,5 +72,5 @@ class Controller extends ModuleAbstract
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $dependencies = []; public static array $dependencies = [];
} }