Merge branch 'mk-fix-issue-34068' into 'master'
Fix 500 on failure to create a private group Closes #34068 See merge request !12394
This commit is contained in:
commit
788f54152b
2 changed files with 6 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
= icon('caret-down')
|
= icon('caret-down')
|
||||||
.dropdown-menu-nav.dropdown-menu-align-right
|
.dropdown-menu-nav.dropdown-menu-align-right
|
||||||
%ul
|
%ul
|
||||||
- if @group
|
- if @group&.persisted?
|
||||||
- create_group_project = can?(current_user, :create_projects, @group)
|
- create_group_project = can?(current_user, :create_projects, @group)
|
||||||
- create_group_subgroup = can?(current_user, :create_subgroup, @group)
|
- create_group_subgroup = can?(current_user, :create_subgroup, @group)
|
||||||
- if create_group_project || create_group_subgroup
|
- if create_group_project || create_group_subgroup
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
%li.divider
|
%li.divider
|
||||||
%li.dropdown-bold-header GitLab
|
%li.dropdown-bold-header GitLab
|
||||||
|
|
||||||
- if @project && @project.persisted?
|
- if @project&.persisted?
|
||||||
- create_project_issue = can?(current_user, :create_issue, @project)
|
- create_project_issue = can?(current_user, :create_issue, @project)
|
||||||
- merge_project = can?(current_user, :create_merge_request, @project) ? @project : (current_user && current_user.fork_of(@project))
|
- merge_project = can?(current_user, :create_merge_request, @project) ? @project : (current_user && current_user.fork_of(@project))
|
||||||
- create_project_snippet = can?(current_user, :create_project_snippet, @project)
|
- create_project_snippet = can?(current_user, :create_project_snippet, @project)
|
||||||
|
|
4
changelogs/unreleased/mk-fix-issue-34068.yml
Normal file
4
changelogs/unreleased/mk-fix-issue-34068.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Fix 500 when failing to create private group
|
||||||
|
merge_request: 12394
|
||||||
|
author:
|
Loading…
Reference in a new issue