ucd-library / rp-ucd-client

Client application for UCD Davis Library research profiles
MIT License
0 stars 0 forks source link

Allow admins to impersonate user #88

Closed jrmerz closed 3 years ago

jrmerz commented 3 years ago

This is only to see what the user sees, does not provide write access. Simply a tool for QA.

jrmerz commented 3 years ago

@wrenaria and FYI for everyone.

If a user is an admin, all profile pages (/individual/*) now show a 'Impersonate' button just under the research areas (hard to miss). Click the button and the page should reload with you impersonated as the user. To stop impersonating, click the username dropdown menu in the top right, there should be a button to 'Stop Impersonating'.

wrenaria commented 3 years ago

@jrmerz "Stop impersonation" is not always working. On desktop sometimes it won't let me at all, on mobile it gives me either a never ending "loading..." or this error: Cannot GET / undefined

wrenaria commented 3 years ago

@jrmerz When I impersonate a user and then click "my profile" from the user's options, it just hangs on "loading" and never loads anything. Not sure if this is a "my profile" link bug or an impersonation bug.

Screen Shot 2021-02-09 at 2 41 09 PM

jrmerz commented 3 years ago

I broke the "my profile" button .... But at least "impersonate" is giving you the full experience .......