From: Matthew B. <mat...@co...> - 2005-06-06 16:05:00
|
Matthew Buckett wrote: > Andrew Booth wrote: > >> Sounds a good idea. While you are at it, could you make owners have MARK >> privilege by default in pigeonholes and short answer papers? > > > I think thats in our list as well :-) I'll have a look at it in the next > few days hopefully. I'm going mad. I'd actually fixed that in WebLearn HEAD already! This was the method I added to PigeonHoleFacility: > /** > * Setup the PigeonHole resource to a sensible state. We add Record, Mark > * and Review Permissions to the owner for this. > */ > public boolean create(Request request, Connection connection, > Resource resource) > { > try > { > Acl acl = resource.getAcl(); > if (acl != null) > { > AclEntry aclEntry = acl.getOwnerGroupAclEntry(); > if (aclEntry != null) > { > aclEntry.addPermission(Permission.RECORD); > aclEntry.addPermission(Permission.MARK); > aclEntry.addPermission(Permission.REVIEW); > return true; > } > } > log.warn("Resource doesn't have default ACLs"); > } > catch (BuildingServerException bse) > { > log.warn("Could not get ACL details for: " + resource); > } > return false; > > } -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |