forked from External/greenlight
Added the ability for admins to send a reset password email for users (#737)
This commit is contained in:
committed by
Jesus Federico
parent
1256554ce6
commit
7e3c44575e
@ -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
|
||||
|
Reference in New Issue
Block a user