From bfec89b466f95cedf5ba6a8e51b73ee2b758d12b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 31 May 2023 12:03:53 +0000 Subject: [PATCH] fix getters/setters --- Controller/BackendController.php | 11 +++++++++-- Controller/Controller.php | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index ee59026..bf71450 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -339,8 +339,15 @@ final class BackendController extends Controller $view->data['categories'] = $categories; $view->data['document'] = $document; - $view->['editable'] = $this->app->accountManager->get($accountId)->hasPermission( - PermissionType::MODIFY, $this->app->unitId, $this->app->appId, self::NAME, PermissionCategory::WIKI, $document->id); + $view->data['editable'] = $this->app->accountManager->get($accountId) + ->hasPermission( + PermissionType::MODIFY, + $this->app->unitId, + $this->app->appId, + self::NAME, + PermissionCategory::WIKI, + $document->id + ); return $view; } diff --git a/Controller/Controller.php b/Controller/Controller.php index cbd1cd4..ae28622 100755 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -64,7 +64,7 @@ class Controller extends ModuleAbstract * @var string[] * @since 1.0.0 */ - protected static array $providing = []; + public static array $providing = []; /** * Dependencies. @@ -72,5 +72,5 @@ class Controller extends ModuleAbstract * @var string[] * @since 1.0.0 */ - protected static array $dependencies = []; + public static array $dependencies = []; }