Added the ability for admins to send a reset password email for users (#737)

This commit is contained in:
farhatahmad
2019-08-14 10:21:58 -04:00
committed by Jesus Federico
parent 1256554ce6
commit 7e3c44575e
10 changed files with 34 additions and 18 deletions

View File

@ -128,4 +128,9 @@ module ApplicationHelper
role.name
end
end
def can_reset_password
# Check if admin is editting user
Rails.application.routes.recognize_path(request.env['PATH_INFO'])[:action] == "edit_user"
end
end