Add admin action to regenerate QR codes

This commit is contained in:
sto
2025-11-21 10:53:23 +01:00
parent db6f732e63
commit ae3c7c73e1
5 changed files with 20 additions and 1 deletions

View File

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