debian-mirror-gitlab/app/models/preloaders/group_policy_preloader.rb
2022-10-11 01:57:18 +05:30

20 lines
407 B
Ruby

# frozen_string_literal: true
module Preloaders
class GroupPolicyPreloader
def initialize(groups, current_user)
@groups = groups
@current_user = current_user
end
def execute
Preloaders::UserMaxAccessLevelInGroupsPreloader.new(groups, current_user).execute
end
private
attr_reader :groups, :current_user
end
end
Preloaders::GroupPolicyPreloader.prepend_mod