mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Ticket -- https://github.com/cantino/huginn/issues/1914 Testing -- Local huginn setup About -- Switching as admin to a user is broken if the user is deactivated. This code makes the 'Become User' buttons invisible if the user to be impersonated is deactivated. The buttons used to be visible on: * /admin/users * /admin/users/XX/edit Bonus: removes the 'Become User' button from the 'Edit Users' page if we are the edited `current_user`. |
||
---|---|---|
.. | ||
_form.html.erb | ||
edit.html.erb | ||
index.html.erb | ||
new.html.erb |