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
27e720cf
Commit
27e720cf
authored
Jun 27, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it clear that this should only be run once.
parent
0e0f2299
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
cms/djangoapps/auth/authz.py
+4
-1
cms/djangoapps/contentstore/management/commands/populate_creators.py
+2
-0
No files found.
cms/djangoapps/auth/authz.py
View file @
27e720cf
...
...
@@ -210,7 +210,10 @@ def is_user_in_creator_group(user):
def
_grant_instructors_creator_access
(
caller
):
"""
This is to be called only by either a command line code path or through an app which has already
asserted permissions to do this action
asserted permissions to do this action.
Gives all users with instructor role course creator rights.
This is only intended to be run once on a given environment.
"""
for
group
in
Group
.
objects
.
all
():
if
group
.
name
.
startswith
(
INSTRUCTOR_ROLE_NAME
+
"_"
):
...
...
cms/djangoapps/contentstore/management/commands/populate_creators.py
View file @
27e720cf
"""
Script for granting existing course instructors course creator privileges.
This script is only intended to be run once on a given environment.
"""
from
auth.authz
import
_grant_instructors_creator_access
from
django.core.management.base
import
BaseCommand
...
...
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