Skip to content

Commit

Permalink
more about #3
Browse files Browse the repository at this point in the history
  • Loading branch information
vedina committed Jun 1, 2012
1 parent 7ce93e9 commit 66c85bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public Restlet createInboundRoot() {
MyRouter notificationRouter = new MyRouter(getContext());
notificationRouter.attachDefault(NotificationResource.class);
if (aaenabled) {
router.attach(Resources.protocol, createProtectedResource(protocols,"protocol",new ProtocolAuthorizer()));
router.attach(Resources.protocol, createProtectedResource(protocols,"protocol",new ProtocolAuthorizer("protocol")));
router.attach(Resources.project, createProtectedResource(projectRouter,"project",true));
router.attach(Resources.organisation, createProtectedResource(org_router,"organisation",true));
router.attach(Resources.alert, createProtectedResource(org_router,"alert",true));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ public int getMaxDepth() {
public void setMaxDepth(int maxDepth) {
this.maxDepth = maxDepth;
}
public ProtocolAuthorizer() {
public ProtocolAuthorizer(String prefix) {
super();
setPrefix(prefix);
}
@Override
public void setPrefix(String u) {

super.setPrefix(u);
}
protected ReadProtocolAccessLocal query;
Expand Down

0 comments on commit 66c85bb

Please sign in to comment.