summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-11-01 14:06:05 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-11-17 15:10:13 -0200
commitb34c063ec428f1fd890a357a3f8ac7c129ee4c46 (patch)
tree1a00aba47d314a061ffc9e4fbe49147019d85785 /lib/api/entities.rb
parent091efb315296306fd8c8d7c109ad6df77e7f28d5 (diff)
downloadgitlab-ce-b34c063ec428f1fd890a357a3f8ac7c129ee4c46.tar.gz
Pass project to Entities::Label to check if user is subscribed
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 6e370e961c4..e7042677635 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -454,7 +454,7 @@ module API
end
expose :subscribed do |label, options|
- label.subscribed?(options[:current_user])
+ label.subscribed?(options[:current_user], options[:project])
end
end