Provide an overridable notion of admin-ness.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1959 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -152,6 +152,15 @@ public class User
|
|||||||
return (-1 != username.indexOf('='));
|
return (-1 != username.indexOf('='));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if this user is an admin, false otherwise. The default
|
||||||
|
* implementation does not track admin status and always returns false.
|
||||||
|
*/
|
||||||
|
public boolean isAdmin ()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called by the repository to find out which fields have been
|
* Called by the repository to find out which fields have been
|
||||||
* modified since the object was loaded.
|
* modified since the object was loaded.
|
||||||
|
|||||||
Reference in New Issue
Block a user