mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-02-09 14:58:42 +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['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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 = [];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user