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:
Eric J. Bowersox
2003-06-25 07:46:20 +00:00
parent 8b40695626
commit db492cf185
15 changed files with 556 additions and 123 deletions

View File

@@ -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);