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
f2f74596
Commit
f2f74596
authored
Jan 31, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove more prints
parent
c25cd332
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
lms/djangoapps/django_comment_client/base/views.py
+0
-10
No files found.
lms/djangoapps/django_comment_client/base/views.py
View file @
f2f74596
...
...
@@ -94,26 +94,16 @@ def create_thread(request, course_id, commentable_id):
# Cohort the thread if the commentable is cohorted.
if
is_commentable_cohorted
(
course_id
,
commentable_id
):
print
"********************** IS COHORTED"
user_group_id
=
get_cohort_id
(
user
,
course_id
)
print
"********************** USER GOUP ID IS"
print
user_group_id
# TODO (vshnayder): once we have more than just cohorts, we'll want to
# change this to a single get_group_for_user_and_commentable function
# that can do different things depending on the commentable_id
if
cached_has_permission
(
request
.
user
,
"see_all_cohorts"
,
course_id
)
or
True
:
# admins can optionally choose what group to post as
print
"********************** CACHED HAS PERMISSIONS TRUE"
group_id
=
post
.
get
(
'group_id'
,
user_group_id
)
else
:
# regular users always post with their own id.
print
"********************** CACHED HAS PERMISSIONS FALSE"
group_id
=
user_group_id
print
"
\n\n\n\n\n
********************************* group is "
print
group_id
print
"
\n\n\n\n\n
********************************* and post is"
print
post
thread
.
update_attributes
(
group_id
=
group_id
)
thread
.
save
()
...
...
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