Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-05-22 13:17:37 +0300
committerStan Hu <stanhu@gmail.com>2015-05-25 13:16:33 +0300
commita7d8a7bd3d4b6f7b388d8976201cbdf3b36ab7aa (patch)
tree9d62c322ee3a1b66faadaffc9417cd7d21feb29b /app/views/projects/milestones/show.html.haml
parentf042b085f64223ffe7b9d26f003ee2db76af27a6 (diff)
Disable "New Issue" and "New Merge Request" buttons when features are disabled in project settings
Closes #1676
Diffstat (limited to 'app/views/projects/milestones/show.html.haml')
-rw-r--r--app/views/projects/milestones/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/milestones/show.html.haml b/app/views/projects/milestones/show.html.haml
index bba2b8764ac..22172a31289 100644
--- a/app/views/projects/milestones/show.html.haml
+++ b/app/views/projects/milestones/show.html.haml
@@ -61,7 +61,7 @@
Participants
%span.badge= @users.count
- - if @project.issues_enabled
+ - if can?(current_user, :write_issue, @project)
.pull-right
= link_to new_namespace_project_issue_path(@project.namespace, @project, issue: { milestone_id: @milestone.id }), class: "btn btn-grouped", title: "New Issue" do
%i.fa.fa-plus