Add method to update contestants through admin UI
Some checks failed
CI / scan_ruby (push) Successful in 19s
CI / scan_js (push) Successful in 14s
CI / lint (push) Successful in 13s
CI / test (push) Failing after 35s

This commit is contained in:
sto
2025-11-18 11:15:23 +01:00
parent ecb36e19ed
commit 63a88ea113
5 changed files with 35 additions and 2 deletions

View File

@@ -26,4 +26,8 @@ class UserPolicy < ApplicationPolicy
def destroy?
user.admin?
end
def update_contestants?
user.admin?
end
end