Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
unsaved changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerwoud committed Mar 18, 2024
1 parent 6daf8f3 commit bccda62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/project/endpoints/projects/project_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ProjectDetail(Resource):
for implementing get, delete and put methods
"""

# @authorize_project_visible
@authorize_project_visible
def get(self, project_id):
"""
Get method for listing a specific project
Expand All @@ -42,7 +42,7 @@ def get(self, project_id):
project_id,
RESPONSE_URL)

# @authorize_teacher_or_project_admin
@authorize_teacher_or_project_admin
def patch(self, project_id):
"""
Update method for updating a specific project
Expand Down
4 changes: 2 additions & 2 deletions backend/project/endpoints/projects/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ProjectsEndpoint(Resource):
for implementing get method
"""

# @authorize_teacher
@authorize_teacher
def get(self, teacher_id=None):
"""
Get method for listing all available projects
Expand All @@ -41,7 +41,7 @@ def get(self, teacher_id=None):
filters=request.args
)

# @authorize_teacher
@authorize_teacher
def post(self, teacher_id=None):
"""
Post functionality for project
Expand Down

0 comments on commit bccda62

Please sign in to comment.