From 2019c9d037d9b9153ea113eac122aae3ba19ed0a Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Wed, 9 Jan 2013 09:47:43 -0500 Subject: [PATCH] Bug 107 --- cms/djangoapps/contentstore/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cms/djangoapps/contentstore/views.py b/cms/djangoapps/contentstore/views.py index 4cbf6b5d30..560485eb26 100644 --- a/cms/djangoapps/contentstore/views.py +++ b/cms/djangoapps/contentstore/views.py @@ -973,6 +973,11 @@ def course_info_updates(request, org, course, provided_id=None): # ??? No way to check for access permission afaik # get current updates location = ['i4x', org, course, 'course_info', "updates"] + + # Hmmm, provided_id is coming as empty string on create whereas I believe it used to be None :-( + # Possibly due to my removing the seemingly redundant pattern in urls.py + if provided_id == '': + provided_id = None # check that logged in user has permissions to this item if not has_access(request.user, location):