Skip to content

Commit b169462

Browse files
Fix DRF Permission classes
1 parent 045a612 commit b169462

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/problem/views/problem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ class ProblemView(ModelViewSet):
3030

3131
def get_permissions(self):
3232
if self.action == "create":
33-
return [CreateProblemPermission]
33+
return [CreateProblemPermission()]
3434
if self.action == "partial_update":
35-
return [EditProblemPermission]
36-
return [IsAuthenticatedOrReadOnly]
35+
return [EditProblemPermission()]
36+
return [IsAuthenticatedOrReadOnly()]
3737

3838
def list(self, request: Request) -> Response:
3939
"""

0 commit comments

Comments
 (0)