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

Modify non-admin users access to the patient consultation record #8029

Closed
nihal467 opened this issue Jun 15, 2024 · 16 comments
Closed

Modify non-admin users access to the patient consultation record #8029

nihal467 opened this issue Jun 15, 2024 · 16 comments
Labels
good first issue Good for newcomers hacktoberfest needs-triage question Further information is requested

Comments

@nihal467
Copy link
Member

nihal467 commented Jun 15, 2024

Describe the bug

Once a patient is discharged from a facility, the non-admin users of the facility, can view the details page and see the card of the consultation specific to their facility, but when they try to view the consultation detail page, they are taken to a 404 page

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Refer the mentioned conversation for final behavior
(#8727 (comment))

Screenshots

image
image

@aparnacoronasafe
Copy link
Member

@nihal467 staff at hospital should be able to view all previous records from the facility (all facilities they have access to).

The staff should NOT be able to open and view history from any facility that they currently do not have access to.

Copy link

github-actions bot commented Jul 3, 2024

Hi, @coronasafe/care-frontend-maintainers, This issue has been automatically marked as stale because it has not had any recent activity.

@github-actions github-actions bot added the stale label Jul 3, 2024
@gigincg gigincg added Backend good first issue Good for newcomers and removed stale Backend labels Aug 12, 2024
@gigincg
Copy link
Member

gigincg commented Aug 12, 2024

Given the access control is already working fine, just disabling the button based on the conditions should solve this

@Waheedsys
Copy link

hi @nihal467 i would like to try to work on this can you please assign it to me

@rithviknishad rithviknishad moved this from Triage to Up Next in Care Oct 3, 2024
@Sulochan-khadka
Copy link
Contributor

Given the access control is already working fine, just disabling the button based on the conditions should solve this

What about the "View/Upload Consultation Files" button? Should that button also be disabled for staff? It seems fine in the dev env though. Where is the issue?

@AdityaJ2305
Copy link
Contributor

Hey @nihal467, I’d like to work on this issue. Could you please assign it to me and clarify the final expected behaviour?

@github-actions github-actions bot added needs-triage question Further information is requested labels Nov 29, 2024
@nihal467 nihal467 removed the question Further information is requested label Dec 9, 2024
@nihal467
Copy link
Member Author

nihal467 commented Dec 9, 2024

@Sulochan-khadka unassigning you from the issue due to inactivity, @AdityaJ2305 are you still interested in working on this issue

@noufalrahim
Copy link
Contributor

@nihal467 can I work on this..? Can u assign me..

@github-actions github-actions bot added needs-triage question Further information is requested labels Dec 9, 2024
@Sulochan-khadka
Copy link
Contributor

@Sulochan-khadka unassigning you from the issue due to inactivity, @AdityaJ2305 are you still interested in working on this issue

I became inactive because was unsure what was the conclusion of the discussion on the PR. Kindly clarify and will submit within 24, hrs.

@AdityaJ2305
Copy link
Contributor

@Sulochan-khadka unassigning you from the issue due to inactivity, @AdityaJ2305 are you still interested in working on this issue

Yes, but I think @Sulochan-khadka got this already

@gurramkarthiknetha
Copy link

@Sulochan-khadka can I work on this..? Can u assign me..

@Sulochan-khadka
Copy link
Contributor

@nihal467 what is the access level of
"WardAdmin" , "LocalBodyAdmin" , "DistrictLabAdmin" , "DistrictReadOnlyAdmin" , "StateLabAdmin" , "StateReadOnlyAdmin" , "StateAdmin" ?

As per the discussion we had in the previous PR, DistrictAdmin has complete access regardless of the permitted facilities. How about the other Admins stated above?

Also since the requirement was changed from disabling button to giving error, should the "Add consultation updates " remain disabled for discharged patient?

Suggestions for the error message? Image

@Sulochan-khadka
Copy link
Contributor

@nihal467 @rithviknishad could you kindly let me know the outcome of the PR? i hope to close this in 24 hrs. Also , would be great if you may answer the above asked questions...

@rithviknishad
Copy link
Member

rithviknishad commented Dec 19, 2024

Already mentioned in issue comment: #8727 (comment)

@nihal467 nihal467 removed question Further information is requested needs-triage labels Dec 19, 2024
@Sulochan-khadka
Copy link
Contributor

Already mentioned in issue comment: #8727 (comment)

so i think the above approach and message is good to go with? Also only the district-admin can have all the access, other admins can only access permitted facilities...?

@github-actions github-actions bot added needs-triage question Further information is requested labels Dec 19, 2024
@nihal467
Copy link
Member Author

not a requirement based on the current develop , we moved to RBAC

@nihal467 nihal467 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Care Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktoberfest needs-triage question Further information is requested
Projects
Status: Done
9 participants