diff --git a/ee/api/auth/auth_project.py b/ee/api/auth/auth_project.py index a27877712..85b384fb9 100644 --- a/ee/api/auth/auth_project.py +++ b/ee/api/auth/auth_project.py @@ -29,11 +29,6 @@ class ProjectAuthorizer: current_project = projects.get_project(tenant_id=current_user.tenant_id, project_id=value) elif self.project_identifier == "projectKey": current_project = projects.get_by_project_key(value) - if current_project is not None \ - and projects.is_authorized(project_id=current_project["projectId"], - tenant_id=current_user.tenant_id, - user_id=user_id): - current_project = None if current_project is None: logger.debug("unauthorized project")