Commit 48cbe1e6 authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Simplify the changes

parent 3211000d
......@@ -86,7 +86,7 @@ module EE
resource :groups, requirements: ::API::API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
desc 'Sync a group with LDAP.'
post ":id/ldap_sync", feature_category: :authentication_and_authorization do
post ":id/ldap_sync", feature_category: :subgroups do
not_found! unless ::Gitlab::Auth::Ldap::Config.group_sync_enabled?
group = find_group!(params[:id])
......@@ -172,7 +172,7 @@ module EE
use :pagination
end
# rubocop: disable CodeReuse/ActiveRecord
get ':id/provisioned_users', feature_category: :authentication_and_authorization do
get ':id/provisioned_users', feature_category: :subgroups do
authorize! :maintainer_access, user_group
finder = ::Auth::ProvisionedUsersFinder.new(
......
......@@ -298,7 +298,7 @@ module API
use :with_custom_attributes
use :optional_projects_params
end
get ":id/projects", feature_category: :projects do
get ":id/projects", feature_category: :subgroups do
finder_options = {
only_owned: !params[:with_shared],
include_subgroups: params[:include_subgroups],
......@@ -332,7 +332,7 @@ module API
use :pagination
use :with_custom_attributes
end
get ":id/projects/shared", feature_category: :projects do
get ":id/projects/shared", feature_category: :subgroups do
projects = find_group_projects(params, { only_shared: true })
present_projects(params, projects)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment