Restrict access when restricted visibility level is public
Some organizations prefer to have all Gitlab related data private but it is currently possible for non-authenticated users to access certain pages e.g /public and /explore This change makes it possible to restrict access by checking if `public` is included in the restricted visibility level setting. * require authentication for /explore, /help, and /public for non-authenticated users. * remove the Explore link from the sign in page. * redirect an unauthenticated user attempting to access /help to https://docs.gitlab.com/.
显示
- app/controllers/application_controller.rb 4 个添加, 0 个删除app/controllers/application_controller.rb
- app/controllers/explore/application_controller.rb 1 个添加, 1 个删除app/controllers/explore/application_controller.rb
- app/controllers/help_controller.rb 1 个添加, 1 个删除app/controllers/help_controller.rb
- app/helpers/explore_helper.rb 4 个添加, 0 个删除app/helpers/explore_helper.rb
- app/views/layouts/devise.html.haml 4 个添加, 2 个删除app/views/layouts/devise.html.haml
- app/views/layouts/devise_empty.html.haml 3 个添加, 2 个删除app/views/layouts/devise_empty.html.haml
- doc/install/aws/index.md 1 个添加, 1 个删除doc/install/aws/index.md
- doc/public_access/public_access.md 10 个添加, 0 个删除doc/public_access/public_access.md
- doc/user/admin_area/settings/visibility_and_access_controls.md 1 个添加, 1 个删除...ser/admin_area/settings/visibility_and_access_controls.md
- ee/changelogs/unreleased/18165-add-access-control-for-restricted-public-level.yml 5 个添加, 0 个删除.../18165-add-access-control-for-restricted-public-level.yml
- ee/spec/features/users/login_spec.rb 31 个添加, 0 个删除ee/spec/features/users/login_spec.rb
- ee/spec/features/users/signup_spec.rb 25 个添加, 0 个删除ee/spec/features/users/signup_spec.rb
- spec/controllers/explore/groups_controller_spec.rb 14 个添加, 0 个删除spec/controllers/explore/groups_controller_spec.rb
- spec/controllers/explore/projects_controller_spec.rb 12 个添加, 0 个删除spec/controllers/explore/projects_controller_spec.rb
- spec/controllers/help_controller_spec.rb 14 个添加, 0 个删除spec/controllers/help_controller_spec.rb
- spec/features/explore/groups_spec.rb 12 个添加, 0 个删除spec/features/explore/groups_spec.rb
- spec/features/explore/user_explores_projects_spec.rb 11 个添加, 0 个删除spec/features/explore/user_explores_projects_spec.rb
加载中
想要评论请 注册 或 登录