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:
Ingo Schommer 2009-09-10 01:54:15 +00:00
parent 0cf75cfc65
commit 6b6c2a8bfa

View File

@ -501,22 +501,6 @@ class Permission extends DataObject {
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.
*