From 27e720cf3b8d8802524381e61b9f94ea64b81d79 Mon Sep 17 00:00:00 2001 From: cahrens Date: Thu, 27 Jun 2013 11:00:11 -0400 Subject: [PATCH] Make it clear that this should only be run once. --- cms/djangoapps/auth/authz.py | 5 ++++- .../contentstore/management/commands/populate_creators.py | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/auth/authz.py b/cms/djangoapps/auth/authz.py index bc11828b2a..438c9d0697 100644 --- a/cms/djangoapps/auth/authz.py +++ b/cms/djangoapps/auth/authz.py @@ -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 + "_"): diff --git a/cms/djangoapps/contentstore/management/commands/populate_creators.py b/cms/djangoapps/contentstore/management/commands/populate_creators.py index 41c5d8194a..f627df88f5 100644 --- a/cms/djangoapps/contentstore/management/commands/populate_creators.py +++ b/cms/djangoapps/contentstore/management/commands/populate_creators.py @@ -1,5 +1,7 @@ """ 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