Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChantal Rollison <crollison@gitlab.com>2018-08-24 13:13:41 +0300
committerSean McGivern <sean@mcgivern.me.uk>2018-08-24 13:13:41 +0300
commit009c4f7fb892e8af09cc2489f015ea6c62411df6 (patch)
tree5cce8b07846ed39aa8bd00bd149a7999d0d7b85a /lib
parentf4d18201d2fd46f75612485f97dde157e8aca71e (diff)
Allows author to vote on their own issue
Diffstat (limited to 'lib')
-rw-r--r--lib/api/award_emoji.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/award_emoji.rb b/lib/api/award_emoji.rb
index c3d93996816..bde4b3ff4f6 100644
--- a/lib/api/award_emoji.rb
+++ b/lib/api/award_emoji.rb
@@ -100,7 +100,7 @@ module API
end
def can_award_awardable?
- awardable.user_can_award?(current_user, params[:name])
+ awardable.user_can_award?(current_user)
end
def awardable