diff --git a/backend/project/endpoints/projects/project_detail.py b/backend/project/endpoints/projects/project_detail.py index 90eda2d2..c945ac60 100644 --- a/backend/project/endpoints/projects/project_detail.py +++ b/backend/project/endpoints/projects/project_detail.py @@ -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 @@ -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 diff --git a/backend/project/endpoints/projects/projects.py b/backend/project/endpoints/projects/projects.py index b1b6b37a..6a191013 100644 --- a/backend/project/endpoints/projects/projects.py +++ b/backend/project/endpoints/projects/projects.py @@ -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 @@ -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