mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-01 05:39:10 +02:00
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:
parent
23fe21afff
commit
8c48dde721
@ -622,6 +622,19 @@ class Member extends DataObject {
|
|||||||
|
|
||||||
return false;
|
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 -----------------------------------//
|
//------------------- HELPER METHODS -----------------------------------//
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user