mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-01-11 17:38:40 +00:00
fix getters/setters
This commit is contained in:
parent
c7119f763d
commit
bfec89b466
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 = [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user