diff --git a/security/Permission.php b/security/Permission.php index dd6c61f6b..4be85ee0d 100755 --- a/security/Permission.php +++ b/security/Permission.php @@ -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 '

'._t('Permission.PERMSDEFINED', 'The following permission codes are defined').'

'; - $codes = self::get_codes(); - echo "
";
-		print_r($codes);
-	}
-
 
 	/**
 	 * Declare an array of permissions for the system.