Allow the userobject access controller to be overridden by ye subclasses.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3554 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2005-05-16 18:33:57 +00:00
parent ff3012c5f9
commit a2b8874f46
@@ -21,6 +21,7 @@
package com.threerings.crowd.server;
import com.threerings.presents.dobj.AccessController;
import com.threerings.presents.server.PresentsClient;
import com.threerings.crowd.Log;
@@ -54,7 +55,7 @@ public class CrowdClient extends PresentsClient
super.sessionWillStart();
// configure a specific access controller for the client object
_clobj.setAccessController(CrowdObjectAccess.USER);
_clobj.setAccessController(_userAccessController);
}
// documentation inherited
@@ -106,4 +107,8 @@ public class CrowdClient extends PresentsClient
{
CrowdServer.plreg.locprov.leaveOccupiedPlace(bobj);
}
/** The access controller to use for user objects. */
protected static AccessController _userAccessController =
CrowdObjectAccess.USER;
}