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

Disable the delete button for user other than admin in location and bed management #7601

Closed
2 tasks
nihal467 opened this issue Apr 14, 2024 · 1 comment · Fixed by #7671
Closed
2 tasks
Assignees

Comments

@nihal467
Copy link
Member

nihal467 commented Apr 14, 2024

Describe the bug

Users without admin privilege have no delete permission for the bed in a facility location

To Reproduce
Steps to reproduce the behavior:

  1. Go to facility location page
  2. Click on manage beds
  3. delete a existing bed
  4. See error

Expected behavior

  • Disable the delete button in bed management and location management for user other than admin (district, state and super admin)
  • when users hover-over the disabled button, have tooltip, mentioning "Contact your admin to delete the location" and "Contact your admin to delete the bed"

Screenshots

image

image

@github-project-automation github-project-automation bot moved this to Triage in Care Apr 14, 2024
@nihal467 nihal467 changed the title Disable the delete button for user less than district admin Disable the delete button for user other than admin Apr 14, 2024
@nihal467 nihal467 changed the title Disable the delete button for user other than admin Disable the delete button for user other than admin in location and bed management Apr 15, 2024
@AnkurPrabhu
Copy link
Contributor

AnkurPrabhu commented Apr 15, 2024

i can take this up now as p1 issue is not assigned to me now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants