Security, permissions, disable all content unless admin in silverstripe



notes for Security, permissions, disable all content unless admin in silverstripe:

after that content will be greyed out!

put this in TestPage.php

public function canEdit($member = null){ if (Permission::check('ADMIN')){ return true; }else{ // do something here if applicable } }



Tags:
Veröffentlicht: 12.2014