summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorMarko, Peter <peter.marko@siemens.com>2018-07-08 21:43:06 +0200
committerPeter Marko <peter.marko@siemens.com>2018-07-23 20:57:50 +0200
commit6d72bb383286e18421c7b5756f8109a6ccbe05b5 (patch)
tree6df012ec24c318f5f5d174eee0402c9725d6f843 /lib/api/projects.rb
parent9cdf4292c55c41feeb056842cefcd88a957afb05 (diff)
downloadgitlab-ce-6d72bb383286e18421c7b5756f8109a6ccbe05b5.tar.gz
Add min_access_level filter to projects API
Signed-off-by: Marko, Peter <peter.marko@siemens.com>
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 889e3d4f819..eadde7b17bb 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -54,6 +54,7 @@ module API
optional :membership, type: Boolean, default: false, desc: 'Limit by projects that the current user is a member of'
optional :with_issues_enabled, type: Boolean, default: false, desc: 'Limit by enabled issues feature'
optional :with_merge_requests_enabled, type: Boolean, default: false, desc: 'Limit by enabled merge requests feature'
+ optional :min_access_level, type: Integer, values: Gitlab::Access.all_values, desc: 'Limit by minimum access level of authenticated user'
use :optional_filter_params_ee
end