Skip to content

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

@majwadalam

Description

@majwadalam

[UI Bug] Unauthorized 'Edit Amount' and 'Delete' buttons visible to non-owners

Summary

On the bounties listing page, the "Edit Amount" and "Delete" buttons are being rendered for users who do not have administrative permissions over the bounty. While the backend correctly prevents the action (showing an "Unauthorized" message), the buttons should be hidden entirely from the UI for non-authorized users.

Steps to Reproduce

  1. Log in to Algora.io.
  2. Navigate to the bounties page (e.g., algora.io/bounties).
  3. Locate a bounty created by another user/org (e.g., the $2,500 IMAP bounty).
  4. Observe that the "Edit Amount" and "Delete" buttons are visible on the card.
  5. Click either button; a toast notification appears stating: "You are not authorized to edit bounty amounts".

Expected Behavior

The UI should perform a permission check before rendering these action buttons. If the current user session is not authorized to modify the bounty, these buttons should not be visible.

Actual Behavior

The buttons are visible to all logged-in users, leading to a confusing UX where the user is presented with actions they cannot perform.

Visual Proof

Image

Environment

  • URL: https://algora.io/bounties
  • Browser: Chrome/Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions