Skip to content

Commit

Permalink
check the access for get project
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Feb 11, 2025
1 parent 76f3323 commit 6b238d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/projects/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class ProjectIdResource(Resource):
def get(self, project_name: str):
"""Get a single project"""
project = ProjectService.get_by_name(project_name)
ProjectAccessService.check_admin_access(project.id)
ProjectService.check_if_project_exist(project)
return project

Expand Down

0 comments on commit 6b238d6

Please sign in to comment.