From cfa32d56e62446379cd15ee9760e52ea5f49985f Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Sun, 28 Sep 2014 17:10:55 +1300 Subject: [PATCH] FIX: permission check broken --- code/controllers/DocumentationViewer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/controllers/DocumentationViewer.php b/code/controllers/DocumentationViewer.php index 34d5072..d53a9dc 100755 --- a/code/controllers/DocumentationViewer.php +++ b/code/controllers/DocumentationViewer.php @@ -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')) ); }