mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update permission.md
Throws warning without call of parent::init()
This commit is contained in:
parent
07c8085e5d
commit
450ccb9781
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user