diff options
Diffstat (limited to 'app/services/merge_requests/remove_approval_service.rb')
-rw-r--r-- | app/services/merge_requests/remove_approval_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/merge_requests/remove_approval_service.rb b/app/services/merge_requests/remove_approval_service.rb index 5bc44bdad00..3164d0b4069 100644 --- a/app/services/merge_requests/remove_approval_service.rb +++ b/app/services/merge_requests/remove_approval_service.rb @@ -4,7 +4,7 @@ module MergeRequests class RemoveApprovalService < MergeRequests::BaseService # rubocop: disable CodeReuse/ActiveRecord def execute(merge_request) - return unless merge_request.has_approved?(current_user) + return unless merge_request.approved_by?(current_user) # paranoid protection against running wrong deletes return unless merge_request.id && current_user.id |