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:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-06-26 23:52:01 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-06-26 23:55:52 +0300
commite51953bea753ccb209d2d6382e9fc24f294b7dae (patch)
treee5faca4b5d1d45be9a99093f535906b2df2e494e /app/helpers/labels_helper.rb
parentfe17b11736592c3b25b3a07a0ec9494f98e8bd4e (diff)
Fix LabelsHelper#can_subscribe_to_label_in_different_levels
Diffstat (limited to 'app/helpers/labels_helper.rb')
-rw-r--r--app/helpers/labels_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/labels_helper.rb b/app/helpers/labels_helper.rb
index 8a2987dca42..b2ddcd76b08 100644
--- a/app/helpers/labels_helper.rb
+++ b/app/helpers/labels_helper.rb
@@ -134,7 +134,7 @@ module LabelsHelper
end
def can_subscribe_to_label_in_different_levels?(label)
- defined?(@project) || label.is_a?(GroupLabel)
+ defined?(@project) && label.is_a?(GroupLabel)
end
def label_subscription_status(label, project)