From 23fe21afff4483c72a34d77e999ca39d838609ab Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 16 Oct 2008 01:01:27 +0000 Subject: [PATCH] API CHANGE Removed deprecated method isAdmin() on Member - use Permission::check('ADMIN') instead git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64330 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Member.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/security/Member.php b/security/Member.php index 396c2a1da..33537f730 100644 --- a/security/Member.php +++ b/security/Member.php @@ -622,19 +622,6 @@ class Member extends DataObject { return false; } - - /** - * Returns true if this user is an administrator. - * Administrators have access to everything. - * - * @TODO Should this function really exist? Is not {@link isAdmin()} the - * only right name for this? - * - * @return Returns TRUE if this user is an administrator. - */ - function isAdmin() { - return Permission::check('ADMIN'); - } //------------------- HELPER METHODS -----------------------------------//