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.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/api/helpers/members_helpers.rb b/lib/api/helpers/members_helpers.rb
index a82aed507fd..1a23dcd0d3c 100644
--- a/lib/api/helpers/members_helpers.rb
+++ b/lib/api/helpers/members_helpers.rb
@@ -22,6 +22,14 @@ module API
authorize! :"read_#{source_type}_member", source
end
+ def authorize_admin_source_member!(source_type, source)
+ authorize! :"admin_#{source_type}_member", source
+ end
+
+ def authorize_update_source_member!(source_type, member)
+ authorize! :"update_#{source_type}_member", member
+ end
+
def authorize_admin_source!(source_type, source)
authorize! :"admin_#{source_type}", source
end