some work on the ACLs to improve their editability, creation of the ACL helper,
creation of the first conferencing permissions, and the use of those permissions in the first conference display
This commit is contained in:
@@ -30,4 +30,17 @@ comm = vlib.getCommunity(req); // get community
|
||||
// Create the view.
|
||||
rc = new VelocityView("Conference List: " + comm.name,"conf/conferences.vm");
|
||||
rc.setParameter("community",comm);
|
||||
|
||||
// Can we manage the conference list?
|
||||
perm_namespace = "http://www.silverwrist.com/NS/venice/2003/06/25/conferencing.permissions";
|
||||
srm = cast.querySecurityReferenceMonitor(req_help.getRequestObject(Namespaces.DYNAMO_OBJECT_NAMESPACE,"srm"));
|
||||
acl1 = comm.getAcl();
|
||||
acl2 = srm.getGlobalAcl();
|
||||
if (acl1.testPermission(user,perm_namespace,"manage.order") || acl2.testPermission(user,perm_namespace,"manage.order"))
|
||||
rc.setParameter("can_manage",Boolean.TRUE);
|
||||
|
||||
// Can we create new conferences?
|
||||
if (acl1.testPermission(user,perm_namespace,"create") || acl2.testPermission(user,perm_namespace,"create"))
|
||||
rc.setParameter("can_create",Boolean.TRUE);
|
||||
|
||||
dynamo.scriptOutput(rc);
|
||||
|
||||
Reference in New Issue
Block a user