Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
30d266b4
Commit
30d266b4
authored
May 06, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seed forum permissions when creating new courses
parent
57eca325
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
cms/djangoapps/contentstore/views.py
+5
-0
No files found.
cms/djangoapps/contentstore/views.py
View file @
30d266b4
...
...
@@ -64,6 +64,8 @@ from contentstore.utils import get_modulestore
from
django.shortcuts
import
redirect
from
models.settings.course_metadata
import
CourseMetadata
from
django_comment_common.utils
import
seed_permissions_roles
# to install PIL on MacOSX: 'easy_install http://dist.repoze.org/PIL-1.1.6.tar.gz'
log
=
logging
.
getLogger
(
__name__
)
...
...
@@ -1503,6 +1505,9 @@ def create_new_course(request):
create_all_course_groups
(
request
.
user
,
new_course
.
location
)
# seed the forums
seed_permissions_roles
(
new_course
.
location
.
course_id
)
return
HttpResponse
(
json
.
dumps
({
'id'
:
new_course
.
location
.
url
()}))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment