Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
module UserHelper
|
|
|
|
def aliased_user_edit(user, current_user)
|
|
|
|
current_user == user ? edit_account_path : edit_user_path(user)
|
|
|
|
end
|
|
|
|
|
|
|
|
def perspective(user, current_user)
|
|
|
|
current_user == user ? "Are you" : "Is this person"
|
|
|
|
end
|
|
|
|
|
|
|
|
def can_edit_org?(current_user)
|
|
|
|
current_user.data_coordinator? || current_user.support?
|
|
|
|
end
|
|
|
|
|
|
|
|
def delete_user_link(user)
|
|
|
|
govuk_button_link_to "Delete this user", delete_confirmation_user_path(user), warning: true
|
|
|
|
end
|
|
|
|
end
|