Api v1.15.0 (#1588)
* fix(chalice): fixed projectKey-APIKey validation logic
This commit is contained in:
parent
042f317e36
commit
ff85b086b5
1 changed files with 0 additions and 5 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue