Fix LabelsHelper#can_subscribe_to_label_in_different_levels

parent fe17b117
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment