Changed wiki setting so article owners can't change permissions.
This commit is contained in:
@@ -318,6 +318,7 @@ WIKI_ACCOUNT_HANDLING = False
|
|||||||
WIKI_EDITOR = 'course_wiki.editors.CodeMirror'
|
WIKI_EDITOR = 'course_wiki.editors.CodeMirror'
|
||||||
WIKI_SHOW_MAX_CHILDREN = 0 # We don't use the little menu that shows children of an article in the breadcrumb
|
WIKI_SHOW_MAX_CHILDREN = 0 # We don't use the little menu that shows children of an article in the breadcrumb
|
||||||
WIKI_ANONYMOUS = False # Don't allow anonymous access until the styling is figured out
|
WIKI_ANONYMOUS = False # Don't allow anonymous access until the styling is figured out
|
||||||
|
WIKI_CAN_CHANGE_PERMISSIONS = lambda article, user: user.has_perm('wiki.assign')
|
||||||
|
|
||||||
################################# Jasmine ###################################
|
################################# Jasmine ###################################
|
||||||
JASMINE_TEST_DIRECTORY = PROJECT_ROOT + '/static/coffee'
|
JASMINE_TEST_DIRECTORY = PROJECT_ROOT + '/static/coffee'
|
||||||
|
|||||||
Reference in New Issue
Block a user