diff --git a/src/as/com/threerings/presents/data/ClientObject.as b/src/as/com/threerings/presents/data/ClientObject.as index 6ffb177e4..24086acff 100644 --- a/src/as/com/threerings/presents/data/ClientObject.as +++ b/src/as/com/threerings/presents/data/ClientObject.as @@ -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. *