We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 045a612 commit b169462Copy full SHA for b169462
1 file changed
backend/problem/views/problem.py
@@ -30,10 +30,10 @@ class ProblemView(ModelViewSet):
30
31
def get_permissions(self):
32
if self.action == "create":
33
- return [CreateProblemPermission]
+ return [CreateProblemPermission()]
34
if self.action == "partial_update":
35
- return [EditProblemPermission]
36
- return [IsAuthenticatedOrReadOnly]
+ return [EditProblemPermission()]
+ return [IsAuthenticatedOrReadOnly()]
37
38
def list(self, request: Request) -> Response:
39
"""
0 commit comments