User Account - Block deletion with org ownership
This change adds logic to block self account deletion when user is a sole owner of an organization. This is the same logic that is used for sole ownership of groups. This change also adds links to the landing pages for groups and organizations in the list. Changelog: changed
显示
- app/models/user.rb 3 个添加, 1 个删除app/models/user.rb
- app/views/profiles/accounts/show.html.haml 18 个添加, 6 个删除app/views/profiles/accounts/show.html.haml
- ee/app/views/profiles/accounts/_group_saml_unlink_buttons.html.haml 1 个添加, 1 个删除...ws/profiles/accounts/_group_saml_unlink_buttons.html.haml
- locale/gitlab.pot 2 个添加, 2 个删除locale/gitlab.pot
- spec/features/profile_spec.rb 14 个添加, 1 个删除spec/features/profile_spec.rb
- spec/models/user_spec.rb 39 个添加, 7 个删除spec/models/user_spec.rb
- spec/views/profiles/accounts/show.html.haml_spec.rb 151 个添加, 0 个删除spec/views/profiles/accounts/show.html.haml_spec.rb
加载中
想要评论请 注册 或 登录