summaryrefslogtreecommitdiff
path: root/app/views/projects/milestones
diff options
context:
space:
mode:
authorGeorge Andrinopoulos <geoandri@gmail.com>2017-02-08 22:57:23 +0200
committerGeorge Andrinopoulos <geoandri@gmail.com>2017-03-02 16:37:04 +0200
commit9cc7d93641fd261c1d337aeebad7dca69a779b6c (patch)
tree5e4e7f6eced1735e852db3d8e5fa8a4e478295f1 /app/views/projects/milestones
parentc5b29ed6f36779dbb96f4cdc7b1b0bce8bb8dc5e (diff)
downloadgitlab-ce-9cc7d93641fd261c1d337aeebad7dca69a779b6c.tar.gz
Hide issue info when project issues are disabled
Diffstat (limited to 'app/views/projects/milestones')
-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 06a31698ee6..212ca61a095 100644
--- a/app/views/projects/milestones/show.html.haml
+++ b/app/views/projects/milestones/show.html.haml
@@ -47,7 +47,7 @@
= preserve do
= markdown_field(@milestone, :description)
- - if @milestone.total_items_count(current_user).zero?
+ - if can?(current_user, :read_issue, @project) && @milestone.total_items_count(current_user).zero?
.alert.alert-success.prepend-top-default
%span Assign some issues to this milestone.
- elsif @milestone.complete?(current_user) && @milestone.active?