diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-10-26 11:19:22 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-10-26 11:19:22 +0000 |
commit | ad8a859b6efab6e9aabb8f4e5f1f0e38b1365a1a (patch) | |
tree | a2ee29ef31b2fdc8b5d65ce7915ad3a52e46480e /app/views | |
parent | 8325a1fc9f0b2c9cea9073d4377f2b3b35771e8b (diff) | |
parent | fdb46c55ee52542c6147f24363087185891e0703 (diff) | |
download | gitlab-ce-ad8a859b6efab6e9aabb8f4e5f1f0e38b1365a1a.tar.gz |
Merge branch '52545-guest-create-issue-in-group-board' into 'master'
Resolve "Adding issues from group/project board is not allowed for project-level users"
See merge request gitlab-org/gitlab-ce!22557
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/shared/boards/components/_board.html.haml | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/app/views/shared/boards/components/_board.html.haml b/app/views/shared/boards/components/_board.html.haml index e26f5260e5b..c6c5cadc3f5 100644 --- a/app/views/shared/boards/components/_board.html.haml +++ b/app/views/shared/boards/components/_board.html.haml @@ -39,14 +39,13 @@ {{ list.issuesSize }} = render_if_exists "shared/boards/components/list_weight" - - if can?(current_user, :admin_list, current_board_parent) - %button.issue-count-badge-add-button.btn.btn-sm.btn-default.ml-1.has-tooltip.js-no-trigger-collapse{ type: "button", - "@click" => "showNewIssueForm", - "v-if" => 'list.type !== "closed"', - "aria-label" => _("New issue"), - "title" => _("New issue"), - data: { placement: "top", container: "body" } } - = icon("plus", class: "js-no-trigger-collapse") + %button.issue-count-badge-add-button.btn.btn-sm.btn-default.ml-1.has-tooltip.js-no-trigger-collapse{ type: "button", + "@click" => "showNewIssueForm", + "v-if" => "isNewIssueShown", + "aria-label" => _("New issue"), + "title" => _("New issue"), + data: { placement: "top", container: "body" } } + = icon("plus", class: "js-no-trigger-collapse") %board-list{ "v-if" => 'list.type !== "blank" && list.type !== "promotion"', ":list" => "list", |