Reorganized basic permissions handling to be more cleanly extensible.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3375 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-03-02 03:22:27 +00:00
parent 713e76373b
commit 01592d2593
5 changed files with 17 additions and 72 deletions
@@ -75,6 +75,17 @@ public class BodyObject extends ClientObject
*/
public String awayMessage;
/**
* Checks whether or not this user has access to the specified
* feature. Currently used by the chat system to regulate access to
* chat broadcasts but also forms the basis of an extensible
* fine-grained permissions system.
*/
public boolean checkAccess (String feature, Object context)
{
return false;
}
// documentation inherited
public void applyToListeners (ListenerOp op)
{