Skip to content

Hide bounty management actions from unauthorized users#256

Open
xh-stack wants to merge 2 commits into
algora-io:mainfrom
xh-stack:codex/hide-bounty-admin-actions
Open

Hide bounty management actions from unauthorized users#256
xh-stack wants to merge 2 commits into
algora-io:mainfrom
xh-stack:codex/hide-bounty-admin-actions

Conversation

@xh-stack
Copy link
Copy Markdown

Summary

  • hide Edit Amount and Delete controls on the organization bounties page unless the current user is an admin or moderator
  • gate the edit amount drawer with the same role check
  • reuse a single can_manage_bounties?/1 helper for the UI and LiveView event authorization checks

Security impact

The backend already rejects unauthorized edit/delete events, but non-admin users could still see management controls and trigger authorization error states. This change removes those controls from unauthorized users' rendered UI and keeps the backend authorization intact.

Fixes #238.

Testing

Not run locally. I used the GitHub API path for the patch because local git fetch against the fork repeatedly timed out in this environment.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 13, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI Bug] Unauthorized 'Edit' and 'Delete' buttons visible on /bounties page

2 participants