Skip to content

Commit

Permalink
Merge pull request #2025 from Agenta-AI/feature/age-539-endpoint-for-…
Browse files Browse the repository at this point in the history
…renaming-an-application

[Bug Fix]: Correct permission naming from 'UPDATE_APPLICATION' to 'EDIT_APPLICATION'
  • Loading branch information
mmabrouk committed Aug 26, 2024
2 parents 9ac33ea + a7c52c1 commit ad3ffeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agenta-backend/agenta_backend/routers/app_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ async def update_app(
has_permission = await check_action_access(
user_uid=request.state.user_id,
object=app,
permission=Permission.UPDATE_APPLICATION,
permission=Permission.EDIT_APPLICATION,
)
logger.debug(f"User has Permission to update app: {has_permission}")
if not has_permission:
Expand Down

0 comments on commit ad3ffeb

Please sign in to comment.