Api v1.15.0 (#1588)

* fix(chalice): fixed projectKey-APIKey validation logic
This commit is contained in:
Kraiem Taha Yassine 2023-10-27 17:44:44 +02:00 committed by GitHub
parent 042f317e36
commit ff85b086b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")