Commit 116c7ed3 by Chris Dodge

fix typo bug on PermissionDenied exception raising

parent d241d555
......@@ -421,7 +421,7 @@ def clone_item(request):
display_name = request.POST['name']
if not has_access(request.user, parent_location):
raise PermissionDenies()
raise PermissionDenied()
parent = modulestore().get_item(parent_location)
dest_location = parent_location._replace(category=template.category, name=Location.clean_for_url_name(display_name))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment