FIX: permission check broken

This commit is contained in:
Will Rossiter 2014-09-28 17:10:55 +13:00
parent 5fbde299d1
commit cfa32d56e6
1 changed files with 2 additions and 2 deletions

View File

@ -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'))
);
}