mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00:00
FIX: permission check broken
This commit is contained in:
parent
5fbde299d1
commit
cfa32d56e6
@ -124,8 +124,8 @@ class DocumentationViewer extends Controller {
|
|||||||
*/
|
*/
|
||||||
public function canView() {
|
public function canView() {
|
||||||
return (Director::isDev() || Director::is_cli() ||
|
return (Director::isDev() || Director::is_cli() ||
|
||||||
!self::$check_permission ||
|
!$this->config()->get('check_permission') ||
|
||||||
Permission::check(self::$check_permission)
|
Permission::check($this->config()->get('check_permission'))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user