Extract our permission policy into a separate class so that a system can more
easily make use of different permission policies in different circumstances (one can imagine a hypothetical partner who has different access control requirements, perhaps). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5118 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -26,12 +26,11 @@ import com.threerings.io.SimpleStreamableObject;
|
||||
/**
|
||||
* Defines access control tokens that convey certain privileges to users.
|
||||
*
|
||||
* @see BodyObject#checkAccess
|
||||
* @see CrowdPermissionPolicy
|
||||
*/
|
||||
public class TokenRing extends SimpleStreamableObject
|
||||
{
|
||||
/** Indicates that this user is an administrator and can do things like broadcast, shutdown the
|
||||
* server and whatnot. */
|
||||
/** Indicates that this user is an administrator. */
|
||||
public static final int ADMIN = (1 << 0);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user