diff --git a/security/Member.php b/security/Member.php index 33537f730..396c2a1da 100644 --- a/security/Member.php +++ b/security/Member.php @@ -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 -----------------------------------//