Fix LabelsHelper#can_subscribe_to_label_in_different_levels
This commit is contained in:
parent
fe17b11736
commit
e51953bea7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue