Add admin role option for the default project creation protection
We have a `Default project creation protection` setting in `Admin -> Settings -> General -> Visibility and access controls` that controls the default setting for the group for the minimum access needed to create a project in the group. We have a `No one` option that prevents even the admins from creating projects in the group. Therefore, we have added a new option `Administrators` for this setting, allowing admins to create projects in the group by default. With this new option selected, when admin mode is enabled, the admin will need to enter admin mode to create new projects. Changelog: added
显示
- app/models/group.rb 39 个添加, 15 个删除app/models/group.rb
- app/policies/group_policy.rb 1 个添加, 1 个删除app/policies/group_policy.rb
- config/application_setting_columns/default_project_creation.yml 2 个添加, 2 个删除.../application_setting_columns/default_project_creation.yml
- doc/administration/settings/visibility_and_access_controls.md 5 个添加, 0 个删除...administration/settings/visibility_and_access_controls.md
- doc/api/settings.md 1 个添加, 1 个删除doc/api/settings.md
- lib/gitlab/access.rb 5 个添加, 2 个删除lib/gitlab/access.rb
- locale/gitlab.pot 3 个添加, 0 个删除locale/gitlab.pot
- spec/finders/groups/accepting_project_creations_finder_spec.rb 26 个添加, 0 个删除...finders/groups/accepting_project_creations_finder_spec.rb
- spec/finders/groups/accepting_project_transfers_finder_spec.rb 22 个添加, 0 个删除...finders/groups/accepting_project_transfers_finder_spec.rb
- spec/models/group_spec.rb 91 个添加, 21 个删除spec/models/group_spec.rb
- spec/policies/group_policy_spec.rb 33 个添加, 114 个删除spec/policies/group_policy_spec.rb
加载中
想要评论请 注册 或 登录