mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Removed Permission->listcodes(), use custom code
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@86006 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0cf75cfc65
commit
6b6c2a8bfa
@ -500,22 +500,6 @@ class Permission extends DataObject {
|
||||
asort($allCodes);
|
||||
return $allCodes;
|
||||
}
|
||||
|
||||
/*
|
||||
* Controller action to list the codes available
|
||||
*
|
||||
* @see Permission::get_codes()
|
||||
*/
|
||||
public function listcodes() {
|
||||
if(!Permission::check('ADMIN'))
|
||||
Security::permissionFailure();
|
||||
|
||||
echo '<h1>'._t('Permission.PERMSDEFINED', 'The following permission codes are defined').'</h1>';
|
||||
$codes = self::get_codes();
|
||||
echo "<pre>";
|
||||
print_r($codes);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Declare an array of permissions for the system.
|
||||
|
Loading…
Reference in New Issue
Block a user