Merge pull request #9113 from edx/christina/team-discussion-permissions

Christina/team discussion permissions
This commit is contained in:
Christina Roberts
2015-07-31 12:32:30 -04:00
7 changed files with 388 additions and 86 deletions

View File

@@ -1,5 +1,12 @@
from django_comment_common.models import Role
class ThreadContext(object):
""" An enumeration that represents the context of a thread. Used primarily by the comments service. """
STANDALONE = 'standalone'
COURSE = 'course'
_STUDENT_ROLE_PERMISSIONS = ["vote", "update_thread", "follow_thread", "unfollow_thread",
"update_comment", "create_sub_comment", "unvote", "create_thread",
"follow_commentable", "unfollow_commentable", "create_comment", ]