Skip to content

Bug: Incorrect Error Message & UI Issue on "Accept"/"Reject" for Non-Super Users #959

@AnujChhikara

Description

@AnujChhikara

Issue Description

When a non-super user clicks the "Accept" or "Reject" button on a requests, the error message displayed is incorrect. Additionally, while the error is correctly shown via a toast notification, all request cards disappear from the page. Instead of this behavior, the request cards should remain unchanged, and only the toast notification should display the error message.

Expected Behavior

If a non-super user attempts to accept or reject a request:

  • An appropriate error message should be displayed via toast notification only.
  • The request cards should remain visible and unchanged.

Current Behavior

  • An incorrect error message is displayed.
  • The error is shown via toast notification (this is correct).
  • All request cards disappear from the page when the error occurs.

Screenshots

Image

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

  • Navigate to this Page
  • If you are not a super user try to click on accept or reject button
  • you can notice the error

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions