Implement sensible default object access policies at the Crowd level (no

one can modify anything, a select few events are allowed on the body
object by the body object's owner only).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3553 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-05-16 05:17:05 +00:00
parent c2ab172503
commit ff3012c5f9
3 changed files with 119 additions and 1 deletions
@@ -1,5 +1,5 @@
//
// $Id: CrowdClient.java,v 1.26 2004/10/01 22:04:18 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -48,6 +48,15 @@ public class CrowdClient extends PresentsClient
}
}
// documentation inherited
protected void sessionWillStart ()
{
super.sessionWillStart();
// configure a specific access controller for the client object
_clobj.setAccessController(CrowdObjectAccess.USER);
}
// documentation inherited
protected void sessionWillResume ()
{