fix(chalice): fixed funnels (#2192)

fix(chalice): fixed permissions
This commit is contained in:
Kraiem Taha Yassine 2024-05-15 20:39:25 +02:00 committed by GitHub
parent b68750caeb
commit 5b5df8bf32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ def get_stages_and_events(filter_d: schemas.CardSeriesFilterSchema, project_id)
if len(f.value) > 0 and f.value[0] is not None:
first_stage_extra_constraints.append(f's.duration >= %(minDuration)s')
values["minDuration"] = f.value[0]
if len(f["value"]) > 1 and f.value[1] is not None and int(f.value[1]) > 0:
if len(f.value) > 1 and f.value[1] is not None and int(f.value[1]) > 0:
first_stage_extra_constraints.append('s.duration <= %(maxDuration)s')
values["maxDuration"] = f.value[1]
elif filter_type == schemas.FilterType.referrer:

View file

@ -34,7 +34,7 @@ class CurrentContext(schemas.CurrentContext):
if values.get("permissions") is not None:
perms = []
for p in values["permissions"]:
if Permissions.has_value(p):
if Permissions.has_value(p) or ServicePermissions.has_value(p):
perms.append(p)
values["permissions"] = perms
return values