diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-05-26 22:49:47 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-05-26 22:49:47 +0200 |
commit | 7c6fff34d059c90eafdb1beeb2597a9606453582 (patch) | |
tree | c1376f9a3a7533c2d43fc9e281c92d168e941846 /app/services/vote_service.rb | |
parent | a33a0f69523298520704b98d4dc7fdd1accae642 (diff) | |
parent | 52f4e834f293c9fdbf5805639d022ac4e3856b75 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/services/vote_service.rb')
-rw-r--r-- | app/services/vote_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/vote_service.rb b/app/services/vote_service.rb index ccd04dbfc..114ec285c 100644 --- a/app/services/vote_service.rb +++ b/app/services/vote_service.rb @@ -7,6 +7,8 @@ class VoteService < BaseService include Lockable def call(account, poll, choices) + return if choices.empty? + authorize_with account, poll, :vote? @account = account |