mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02: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() {
|
||||
return (Director::isDev() || Director::is_cli() ||
|
||||
!self::$check_permission ||
|
||||
Permission::check(self::$check_permission)
|
||||
!$this->config()->get('check_permission') ||
|
||||
Permission::check($this->config()->get('check_permission'))
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user