feat: Ability for super admin to impersonate a user (#6382)

This commit is contained in:
Sojan Jose
2023-02-07 00:30:08 +05:30
committed by GitHub
parent 0a2d3130e0
commit 6b839a0442
6 changed files with 46 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
<section class="main-content__body">
<hr/>
<div class="form-actions">
<p class="text-color-red">Caution: Any actions executed after impersonate will appear as if performed by the impersonated user - [<%= page.resource.name %> ]</p>
<a class='button' target='_blank' href='<%= page.resource.generate_sso_link %>'>Impersonate user </a>
</div>
</section>

View File

@@ -85,3 +85,5 @@ as well as a link to its edit page.
<% end %>
</section>
<%= render partial: "impersonate", locals: {page: page} %>