Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task Request shows "Approve" button to regular users #677

Open
2 of 6 tasks
iRohitGaur opened this issue Jan 22, 2024 · 0 comments
Open
2 of 6 tasks

Task Request shows "Approve" button to regular users #677

iRohitGaur opened this issue Jan 22, 2024 · 0 comments

Comments

@iRohitGaur
Copy link

iRohitGaur commented Jan 22, 2024

Issue Description

After creating a TCR, I am able to see the "Approve" button even though I do not have the permission to approve that TCR.
Clicking on the "Approve" button throws a Toast with error:
"The requested operation could not be completed. Please try again later."

Not sure on how the "Reject" flow works but that button can also be looked into with the same logic (if needed).

Expected Behavior

"Approve" button should not be visible to users who do not have permission to approve.

Current Behavior

"Approve" button is visible to the regular users.

Screenshots

Screenshot 2024-01-22 at 16 14 41

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

  1. Create a TCR
  2. Go to TCR approval page

Severity/Priority

  • Critical
  • High
  • Medium
  • Low
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

No branches or pull requests

1 participant