Added basic hook for portal traversal access control.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2309 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SpotProvider.java,v 1.15 2003/02/12 07:23:31 mdb Exp $
|
||||
// $Id: SpotProvider.java,v 1.16 2003/03/17 19:34:26 mdb Exp $
|
||||
|
||||
package com.threerings.whirled.spot.server;
|
||||
|
||||
@@ -77,6 +77,12 @@ public class SpotProvider
|
||||
SpotScene rss = (SpotScene)smgr.getScene();
|
||||
final Portal fdest = rss.getPortal(portalId);
|
||||
|
||||
// give the source scene manager a chance to do access control
|
||||
String errmsg = smgr.mayTraversePortal(fsource, fdest);
|
||||
if (errmsg != null) {
|
||||
throw new InvocationException(errmsg);
|
||||
}
|
||||
|
||||
// make sure this portal has valid info
|
||||
if (fdest == null || !fdest.isValid()) {
|
||||
Log.warning("Traverse portal with invalid portal " +
|
||||
|
||||
Reference in New Issue
Block a user