Give Bureaus their own client object subclass. It does nothing at the moment, but we need it to be a distinct type for access control purposes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5600 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -58,10 +58,8 @@ public class BureauSessionFactory implements SessionFactory
|
||||
// from interface SessionFactory
|
||||
public Class<? extends ClientResolver> getClientResolverClass (Name username)
|
||||
{
|
||||
// Just give bureaus a vanilla ClientResolver for now.
|
||||
// TODO: will bureaus need specific resolution?
|
||||
if (BureauCredentials.isBureau(username)) {
|
||||
return ClientResolver.class;
|
||||
return BureauClientResolver.class;
|
||||
} else {
|
||||
return _delegate.getClientResolverClass(username);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user