Created LACK_ACCESS error code; use it for chat.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1879 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ChatProvider.java,v 1.17 2002/11/01 00:57:50 mdb Exp $
|
// $Id: ChatProvider.java,v 1.18 2002/11/01 01:01:27 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.crowd.chat;
|
package com.threerings.crowd.chat;
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ public class ChatProvider
|
|||||||
|
|
||||||
// make sure the requesting user has broadcast privileges
|
// make sure the requesting user has broadcast privileges
|
||||||
if (!CrowdServer.actrl.checkAccess(body, BROADCAST_TOKEN)) {
|
if (!CrowdServer.actrl.checkAccess(body, BROADCAST_TOKEN)) {
|
||||||
throw new InvocationException(ACCESS_DENIED);
|
throw new InvocationException(CrowdServer.actrl.LACK_ACCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
Iterator iter = CrowdServer.plreg.enumeratePlaces();
|
Iterator iter = CrowdServer.plreg.enumeratePlaces();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: AccessControl.java,v 1.1 2002/10/31 21:32:39 mdb Exp $
|
// $Id: AccessControl.java,v 1.2 2002/11/01 01:01:27 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.crowd.server;
|
package com.threerings.crowd.server;
|
||||||
import com.threerings.crowd.data.BodyObject;
|
import com.threerings.crowd.data.BodyObject;
|
||||||
@@ -9,6 +9,10 @@ import com.threerings.crowd.data.BodyObject;
|
|||||||
*/
|
*/
|
||||||
public interface AccessControl
|
public interface AccessControl
|
||||||
{
|
{
|
||||||
|
/** An error code that can be delivered when a user lacks access for a
|
||||||
|
* particular feature. */
|
||||||
|
public static final String LACK_ACCESS = "m.lack_access";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks to see if the specified user has access to the feature with
|
* Checks to see if the specified user has access to the feature with
|
||||||
* the specified name. Features are named according to their
|
* the specified name. Features are named according to their
|
||||||
|
|||||||
Reference in New Issue
Block a user