gitlab-org--gitlab-foss/app/helpers/profile_helper.rb

14 lines
232 B
Ruby
Raw Normal View History

module ProfileHelper
2013-09-03 17:53:01 -04:00
def show_profile_username_tab?
current_user.can_change_username?
end
def show_profile_social_tab?
enabled_social_providers.any?
2013-09-03 17:53:01 -04:00
end
def show_profile_remove_tab?
signup_enabled?
2013-09-03 17:53:01 -04:00
end
end