From ae105140f1cbcb884e658d92944d4ba98dba77ad Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Sun, 3 Mar 2024 12:04:56 +0100 Subject: [PATCH] [BURs] Only allow approving if pending --- app/models/bulk_update_request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/bulk_update_request.rb b/app/models/bulk_update_request.rb index 7e78a2133..09f6182c5 100644 --- a/app/models/bulk_update_request.rb +++ b/app/models/bulk_update_request.rb @@ -181,7 +181,7 @@ class BulkUpdateRequest < ApplicationRecord end def approvable?(user) - !is_approved? && user.is_admin? + is_pending? && user.is_admin? end def rejectable?(user)