Skip to content

fix(bounties): hide Edit/Delete buttons from unauthorized users#296

Open
VOVANQUOCBAO wants to merge 1 commit into
algora-io:mainfrom
VOVANQUOCBAO:fix/hide-edit-delete-buttons-unauthorized-users
Open

fix(bounties): hide Edit/Delete buttons from unauthorized users#296
VOVANQUOCBAO wants to merge 1 commit into
algora-io:mainfrom
VOVANQUOCBAO:fix/hide-edit-delete-buttons-unauthorized-users

Conversation

@VOVANQUOCBAO
Copy link
Copy Markdown

The Edit Amount and Delete buttons on the org bounties page were rendered for all logged-in users regardless of role. Only admins and moderators should see these buttons, matching the existing backend authorization check (current_user_role in [:admin, :mod]).

Wraps both buttons in a frontend guard so non-owners never see actions they cannot perform, eliminating the confusing "You are not authorized" error on click.

Fixes #238

The Edit Amount and Delete buttons on the org bounties page were
rendered for all logged-in users regardless of role. Only admins
and moderators should see these buttons, matching the existing
backend authorization check (current_user_role in [:admin, :mod]).

Wraps both buttons in a frontend guard so non-owners never see
actions they cannot perform, eliminating the confusing
"You are not authorized" error on click.

Fixes algora-io#238
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 21, 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