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:
Mike Thomas
2010-05-27 20:29:12 +00:00
parent 4ab52e1c1e
commit f7a828e0c4
@@ -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.
*