From 262a49a6dac107db4ad165d4f7041b4a56fc10b4 Mon Sep 17 00:00:00 2001
From: Bridger Maxwell <bridgeyman@gmail.com>
Date: Wed, 15 Aug 2012 21:47:08 -0400
Subject: [PATCH] Permissions on root article no longer allow students to edit
 it.

---
 lms/djangoapps/course_wiki/views.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lms/djangoapps/course_wiki/views.py b/lms/djangoapps/course_wiki/views.py
index 904a674f366..b1d9f1cf264 100644
--- a/lms/djangoapps/course_wiki/views.py
+++ b/lms/djangoapps/course_wiki/views.py
@@ -116,5 +116,13 @@ def get_or_create_root():
     
     root = URLPath.create_root(title="edX Wiki",
                         content=starting_content)
+    article = root.article
+    article.group = None
+    article.group_read = True
+    article.group_write = False
+    article.other_read = True
+    article.other_write = False
+    article.save()
+    
     return root
     
-- 
GitLab