debian-mirror-gitlab/app/models/preloaders/group_policy_preloader.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
448 B
Ruby
Raw Normal View History

2021-12-11 22:18:48 +05:30
# frozen_string_literal: true
module Preloaders
class GroupPolicyPreloader
def initialize(groups, current_user)
@groups = groups
@current_user = current_user
end
def execute
2022-01-26 12:08:38 +05:30
Preloaders::UserMaxAccessLevelInGroupsPreloader.new(groups, current_user).execute
2021-12-11 22:18:48 +05:30
end
private
2022-01-26 12:08:38 +05:30
attr_reader :groups, :current_user
2021-12-11 22:18:48 +05:30
end
end
Preloaders::GroupPolicyPreloader.prepend_mod_with('Preloaders::GroupPolicyPreloader')