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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/helpers/members_helpers.rb')
-rw-r--r--lib/api/helpers/members_helpers.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/api/helpers/members_helpers.rb b/lib/api/helpers/members_helpers.rb
index b0ea4388d9b..4b34a2bbe79 100644
--- a/lib/api/helpers/members_helpers.rb
+++ b/lib/api/helpers/members_helpers.rb
@@ -11,6 +11,9 @@ module API
params :optional_state_filter_ee do
end
+ params :optional_put_params_ee do
+ end
+
def find_source(source_type, id)
public_send("find_#{source_type}!", id) # rubocop:disable GitlabSecurity/PublicSend
end
@@ -98,6 +101,10 @@ module API
user_id.present?
end
+ def self.member_access_levels
+ Gitlab::Access.all_values
+ end
+
private
def member_already_exists?(source, user_id)