Ability to limit course creation
Description
Environment
Test Plan
Attachments
- 07 Dec 2007, 01:09 AM
cloned from
Activity

Zhen Qian January 3, 2008 at 9:28 AM
David,
I have applied your changes in r39721.
Please verify.
Thanks,
Zhen

David Horwitz December 18, 2007 at 6:49 AM
Hi Zhen
I missed this some how the check:
$type == $courseSiteType && $canAddCourse]
needs to be added to the check:
#if ($type != "GradToolsStudent" || ($type == "GradToolsStudent" && $!withDissertation && $!isGradStudent.booleanValue() && $!noGradToolsSite.booleanValue())
in chef_site-type.vm so that the line for course sites is suppresed for users without the permission not just the accademic session dropdown

Zhen Qian December 13, 2007 at 8:37 PM
Fixes have been merged into trunk code. Thanks to Ian for fixing the broken build.
David, I made a small adjustment inside the SiteAction.java, so that if the user is without the site.add.course permission, the course radio button won't appear inside the creating new site page.
Also I've added the new permission to the .auth user inside !user.template.sample, !user.template.registered, !user.template.maintain as the default setting.
Thanks,
-Zhen

David Horwitz December 7, 2007 at 2:42 AM
Hi Zhen,
This is now done and working (for the simple case). Note that there a branches of site and site-manage. Because this changes the SiteService the patch needs to be applied to sakai-mock as well (I didn't have a branch for that)
If anything needs to be changed let me know

David Horwitz December 7, 2007 at 1:09 AM
Patch for sakai-mock
Details
Assignee
David HorwitzDavid HorwitzReporter
David HorwitzDavid HorwitzComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee

Reporter

Currently any user can who has site.add can create any type of site defined including course sites. A number of schools have requested the ability to limit the creation of course sites to staff (faculty) while still enabling students to create collaboration sites. (I'm suprised I haven't already found a jira for this)
Suggestion: create a new permission site.add.course which is required to add new course sites