Do the right thing, not the wrong thing. It's late...

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@694 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Par Winzell
2008-07-31 06:20:32 +00:00
parent 23311ca4f7
commit f3dff81492
2 changed files with 3 additions and 2 deletions
@@ -687,7 +687,8 @@ public class GameManager extends PlaceManager
public BodyObject checkWritePermission (ClientObject client, int playerId)
{
// subclasses can be more restrictive here
return _omgr.getObject(client.getOid());
DObject player = _omgr.getObject(playerId);
return (player instanceof BodyObject) ? (BodyObject) player : null;
}