Skip to content

fix(ui): hide bounty management buttons from non-owners (#179)#192

Open
cscguochang wants to merge 1 commit intoalgora-io:mainfrom
cscguochang:fix/hide-management-buttons-from-non-owners
Open

fix(ui): hide bounty management buttons from non-owners (#179)#192
cscguochang wants to merge 1 commit intoalgora-io:mainfrom
cscguochang:fix/hide-management-buttons-from-non-owners

Conversation

@cscguochang
Copy link

Ensures that 'Edit Amount' and 'Delete' buttons are only visible to authorized organization members (admin/mod).

- Added can_manage_bounties?/1 helper to check org membership.
- Wrapped 'Edit Amount' and 'Delete' buttons with authorization guard.

Fixes algora-io#179
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

2 participants