Commit 28c20c5b authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Remove groups rule for course query

parent 91583819
......@@ -70,7 +70,7 @@ class CourseViewSet(viewsets.ModelViewSet):
#)
from django.utils.translation import get_language
current_language = get_language()
query = Q(Q(status='published', lang__contains=[current_language]) | Q(groups__in=self.request.user.groups.all()))
query = Q(status='published', lang__contains=[current_language])
if (CourseProfessor.objects.filter(user=self.request.user, role='coordinator').exists()):
query.add(Q(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment