Move this convenience method up here to the ClientObject because it's... well... convenient.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6068 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -62,6 +62,15 @@ public class ClientObject extends DObject
|
||||
return "(" + username + ":" + getOid() + ")";
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience wrapper around {@link #checkAccess(Permission)} that simply returns a boolean
|
||||
* indicating whether or not this client has the permission rather than an explanation.
|
||||
*/
|
||||
public function hasAccess (perm :Permission) :Boolean
|
||||
{
|
||||
return checkAccess(perm) == null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether or not this client has the specified permission.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user