Skip to content

Commit

Permalink
Merge pull request #1875 from Agenta-AI/hot-fix/ignore-object_db-when…
Browse files Browse the repository at this point in the history
…-checking-permission-in-cloud

[Hot fix]: ignore permission to check human evaluation access in the case object_db is None
  • Loading branch information
aakrem committed Jul 11, 2024
2 parents 143fa1e + 1850a88 commit 5dd85ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agenta-backend/agenta_backend/routers/container_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async def construct_app_container_url(
object_db = None

# Check app access
if isCloudEE():
if isCloudEE() and object_db is not None:
has_permission = await check_action_access(
user_uid=request.state.user_id,
object=object_db,
Expand Down

0 comments on commit 5dd85ad

Please sign in to comment.