DukeLearningInnovation/kits

Access Denied error when using Impersonate a User

Closed this issue · 2 comments

Describe the bug
Staff in Nursing (tlmoore and bd47) who have scoped access to Nursing kits are receiving an 'Access Denied' error when using the 'Impersonate a User' feature.

To Reproduce
Steps to reproduce the behavior:

  1. Go to kits.duke.edu
  2. Click on Account, Impersonate a User
  3. Receive error Access Denied

Expected behavior
After clicking 'Impersonate a User' the expectation is that you will see a page to search for a user to impersonate, click impersonate next to their name in the results, and then view/act on Kits as that user.

Screenshots
kits_duke_edu_admin_impersonate_access_denied

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Hey Jolie, I mistakenly was assuming you had to be a Sys Admin to Impersonate users. I switched it to also allow Program admins. If you test this on Kits-test i can move it to production.

Thanks, Liz. I tested this and had the Nursing folks test as well. Seems to be working now.