mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 14:18:46 +02:00
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
This commit is contained in:
parent
43e5f6b527
commit
23fe21afff
@ -622,19 +622,6 @@ 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