diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-11-01 14:06:05 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-11-17 15:10:13 -0200 |
commit | b34c063ec428f1fd890a357a3f8ac7c129ee4c46 (patch) | |
tree | 1a00aba47d314a061ffc9e4fbe49147019d85785 /lib/api/entities.rb | |
parent | 091efb315296306fd8c8d7c109ad6df77e7f28d5 (diff) | |
download | gitlab-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.rb | 2 |
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 |