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

base_menu.rb « admin « sidebars « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 897a193f67236a9c533a5d5a32873f69555e73d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Sidebars
  module Admin
    class BaseMenu < ::Sidebars::Menu
      override :render?
      def render?
        return false unless context.current_user

        context.current_user.can_admin_all_resources?
      end
    end
  end
end