diff options
author | Francesco Coda Zabetta <francesco.codazabetta@gmail.com> | 2016-11-14 15:52:43 +0100 |
---|---|---|
committer | Francesco Coda Zabetta <francesco.codazabetta@gmail.com> | 2016-11-14 15:52:43 +0100 |
commit | 84ac742fa6caf6e525e690d6f929f8931902fb9b (patch) | |
tree | 8a84dc739b19b08a428e45d054369645aa225c30 /lib/api | |
parent | 36fa5d660df96c49484cd27695da1df6e361eb8f (diff) | |
download | gitlab-ce-84ac742fa6caf6e525e690d6f929f8931902fb9b.tar.gz |
fix labels API adding missing parameter (current_user)
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 1942aeea656..a186cfd94c1 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -437,7 +437,18 @@ module API end class Label < LabelBasic - expose :open_issues_count, :closed_issues_count, :open_merge_requests_count + expose :open_issues_count do |label, options| + label.open_issues_count(options[:current_user]) + end + + expose :closed_issues_count do |label, options| + label.closed_issues_count(options[:current_user]) + end + + expose :open_merge_requests_count do |label, options| + label.open_merge_requests_count(options[:current_user]) + end + expose :priority do |label, options| label.priority(options[:project]) end |