BUGFIX Reverted Member->isAdmin() removal since it's being used in a lot of places, we shouldn't deprecated it... yet.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64334 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-10-16 01:04:38 +00:00
parent 23fe21afff
commit 8c48dde721

View File

@ -622,6 +622,19 @@ 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 -----------------------------------//