Commit 7b2a7626 authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Update api settings spec with project creation level

Update user creates project spec

Update user creates project spec to check
if there are groups in the namespace dropdown

Satisfy rubocop linters
parent 1d32b221
......@@ -49,12 +49,14 @@ module NamespacesHelper
end
end
# rubocop: disable CodeReuse/ActiveRecord
def namespaces_options_with_developer_maintainer_access(options = {})
selected = options.delete(:selected) || :current_user
options[:groups] = current_user.manageable_groups_with_routes(include_groups_with_developer_maintainer_access: true)
namespaces_options(selected, options)
end
# rubocop: enable CodeReuse/ActiveRecord
private
......
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