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

global_policy.rb « policies « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a1946584dd0a8ef1430a9aa1acaf4cb6f519fecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class GlobalPolicy < BasePolicy
  def rules
    return unless @user

    can! :create_group if @user.can_create_group
    can! :read_users_list

    unless @user.blocked? || @user.internal?
      can! :log_in
      can! :access_api
      can! :access_git
    end
  end
end