add some authorization checks to the Wiki

This commit is contained in:
Chris Dodge
2014-02-24 23:41:57 -05:00
parent 0a73326bca
commit 10465e3eb0
4 changed files with 69 additions and 2 deletions

View File

@@ -399,6 +399,10 @@ class CourseFields(object):
max_student_enrollments_allowed = Integer(help="Limit the number of students allowed to enroll in this course.",
scope=Scope.settings)
allow_public_wiki_access = Boolean(help="Whether to allow an unenrolled user to view the Wiki",
default=False,
scope=Scope.settings)
class CourseDescriptor(CourseFields, SequenceDescriptor):
module_class = SequenceModule