PresentsClient -> PresentsSession (Jamie's suggestion) and associated changes
on down the client. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5508 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -74,8 +74,8 @@ public class PresentsObjectAccess
|
||||
{
|
||||
boolean allowed = true;
|
||||
// if the subscriber is a client, ensure that they are this same user
|
||||
if (PresentsClient.class.isInstance(sub)) {
|
||||
PresentsClient client = PresentsClient.class.cast(sub);
|
||||
if (PresentsSession.class.isInstance(sub)) {
|
||||
PresentsSession client = PresentsSession.class.cast(sub);
|
||||
allowed = (client.getClientObject() == object);
|
||||
if (!allowed) {
|
||||
log.warning("Refusing ClientObject subscription request " +
|
||||
|
||||
Reference in New Issue
Block a user