feat: Ability for super admin to impersonate a user (#6382)
This commit is contained in:
8
app/views/super_admin/users/_impersonate.erb
Normal file
8
app/views/super_admin/users/_impersonate.erb
Normal 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>
|
||||
|
||||
@@ -85,3 +85,5 @@ as well as a link to its edit page.
|
||||
<% end %>
|
||||
|
||||
</section>
|
||||
|
||||
<%= render partial: "impersonate", locals: {page: page} %>
|
||||
|
||||
Reference in New Issue
Block a user