Update permission.md

Throws warning without call of parent::init()
This commit is contained in:
spekulatius 2014-10-13 15:00:50 +13:00
parent 07c8085e5d
commit 450ccb9781

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();
} }