Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
e03e81fa
Commit
e03e81fa
authored
Jul 30, 2020
by
Bruno Martin
Browse files
fix permissions
parent
08f7a408
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
courses/classroom/permissions.py
courses/classroom/permissions.py
+1
-1
No files found.
courses/classroom/permissions.py
View file @
e03e81fa
...
...
@@ -12,5 +12,5 @@ class IsClassroomAssistantOrCoordinatorOrReadOnly(permissions.BasePermission):
return
True
elif
request
.
user
and
request
.
user
.
is_superuser
:
return
True
elif
request
.
user
and
(
request
.
user
in
obj
.
assistants
or
request
.
user
in
obj
.
coordinators
):
elif
request
.
user
and
(
request
.
user
in
obj
.
assistants
.
all
()
or
request
.
user
in
obj
.
coordinators
.
all
()
):
return
True
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