7 lines
366 B
SQL
7 lines
366 B
SQL
-- quizzes:reset — delete one participant's attempt so the quiz is pending
|
|
-- for them again. Granted to the seeded Admin role (Superadmin has '*';
|
|
-- Moderator and custom roles get it only when a superadmin adds it).
|
|
UPDATE admin_roles
|
|
SET permissions = array_append(permissions, 'quizzes:reset')
|
|
WHERE key = 'admin' AND NOT ('quizzes:reset' = ANY(permissions));
|