From d6a68f8993001296152a1527fddbf9860a7b7cdc Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Sep 2007 21:41:54 +0000 Subject: [PATCH] mlanthaler: Bugfix: *Permission_groupList* is not a defined constant. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41956 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Permission.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security/Permission.php b/security/Permission.php index 5573fa83a..d69914791 100755 --- a/security/Permission.php +++ b/security/Permission.php @@ -217,11 +217,11 @@ class Permission extends DataObject { static function get_codes($blankItemText = null) { $classes = ClassInfo::implementorsOf('PermissionProvider'); - + $allCodes = array(); if($blankItemText) $allCodes[''] = ($blankItemText === true) ? '(select)' : $blankItemText; $allCodes['ADMIN'] = 'Full administrative rights'; - + foreach($classes as $class) { $SNG = singleton($class); $someCodes = $SNG->providePermissions(); @@ -244,7 +244,7 @@ class Permission extends DataObject { */ function listcodes() { if(!Permission::check('ADMIN')) Security::permissionFailure(); - + echo "

The following permission codes are defined

"; $codes = self::get_codes(); echo "
";