[BURs] Only allow approving if pending

This commit is contained in:
Earlopain 2024-03-03 12:04:56 +01:00
parent c111421303
commit ae105140f1
No known key found for this signature in database
GPG Key ID: 48860312319ADF61

View File

@ -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)