From 450ccb9781311b25c7dac9f428a3074c9626b970 Mon Sep 17 00:00:00 2001 From: spekulatius Date: Mon, 13 Oct 2014 15:00:50 +1300 Subject: [PATCH] Update permission.md Throws warning without call of parent::init() --- docs/en/reference/permission.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/en/reference/permission.md b/docs/en/reference/permission.md index 9037af1b5..cb1aa1d8d 100644 --- a/docs/en/reference/permission.md +++ b/docs/en/reference/permission.md @@ -25,6 +25,7 @@ This method should return a map of permission code names with a human readable e :::php class Page_Controller implements PermissionProvider { public function init() { + parent::init(); if(!Permission::check("VIEW_SITE")) Security::permissionFailure(); }