summaryrefslogtreecommitdiff
path: root/app/services/base_group_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/base_group_service.rb')
-rw-r--r--app/services/base_group_service.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/services/base_group_service.rb b/app/services/base_group_service.rb
new file mode 100644
index 00000000000..c95b6f5af60
--- /dev/null
+++ b/app/services/base_group_service.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+# Base class, scoped by group
+class BaseGroupService < ::BaseContainerService # rubocop:disable Gitlab/NamespacedClass
+ attr_accessor :group
+
+ def initialize(group:, current_user: nil, params: {})
+ super(container: group, current_user: current_user, params: params)
+
+ @group = group
+ end
+end