diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
commit | db384e6b19af03b4c3c82a5760d83a3fd79f7982 (patch) | |
tree | 34beaef37df5f47ccbcf5729d7583aae093cffa0 /app/services/award_emojis/add_service.rb | |
parent | 54fd7b1bad233e3944434da91d257fa7f63c3996 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-eev16.3.0-rc42
Diffstat (limited to 'app/services/award_emojis/add_service.rb')
-rw-r--r-- | app/services/award_emojis/add_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/award_emojis/add_service.rb b/app/services/award_emojis/add_service.rb index 065ef9dc708..b5aa8f920ff 100644 --- a/app/services/award_emojis/add_service.rb +++ b/app/services/award_emojis/add_service.rb @@ -6,11 +6,11 @@ module AwardEmojis def execute unless awardable.user_can_award?(current_user) - return error('User cannot award emoji to awardable', status: :forbidden) + return error('User cannot add emoji reactions to awardable', status: :forbidden) end unless awardable.emoji_awardable? - return error('Awardable cannot be awarded emoji', status: :unprocessable_entity) + return error('Awardable cannot add emoji reactions', status: :unprocessable_entity) end award = awardable.award_emoji.create(name: name, user: current_user) |