Merge pull request #3543 from spekulatius/patch-1

Update permission.md
This commit is contained in:
Sean Harvey 2014-10-13 16:09:54 +13:00
commit 22bdc1e35b

View File

@ -25,6 +25,7 @@ This method should return a map of permission code names with a human readable e
:::php :::php
class Page_Controller implements PermissionProvider { class Page_Controller implements PermissionProvider {
public function init() { public function init() {
parent::init();
if(!Permission::check("VIEW_SITE")) Security::permissionFailure(); if(!Permission::check("VIEW_SITE")) Security::permissionFailure();
} }