quiz resetc
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
-- 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));
|
||||
Reference in New Issue
Block a user