Welcome to mirror list, hosted at ThFree Co, Russian Federation.

profile_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 780c7cd51332193bb526402232fd36ad26d6cb7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module ProfileHelper
  def show_profile_username_tab?
    current_user.can_change_username?
  end

  def show_profile_social_tab?
    enabled_social_providers.any?
  end

  def show_profile_remove_tab?
    signup_enabled?
  end
end