-
Notifications
You must be signed in to change notification settings - Fork 477
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
Prevent users who don't have access to register a patient to a facility from opening the patient registration page of that facility #7244
Comments
I want to work on this issue can you assign me this. |
@rithviknishad can you specify what users I need to keep the condition on
|
Instead of adding a condition, how about fetching only the permitted facilities in the facility select dropdown in the first place? |
@rithviknishad I have figured out another issue that is if I paste the URL of a non-home facility patient addition page and paste it then it does open the page and has the same issue as above |
Just clarified the permissions with @nihal467
Additional context: Users will still have access to view existing patient records on all their linked facilities (non-home facilities). |
Describe the bug
Certain user types are not allowed to register a patient into a non-home facility. However, it is frustrating when user fills out the patient form only to realise when submitting that they don't have permission to do this action.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Users who do not have permission to register a patient to a non-home facility should not be allowed to open patient registration form for that facility.
Screenshots
The text was updated successfully, but these errors were encountered: