1
0

Seed api_tokens.manage via init SQL

This commit is contained in:
2026-03-11 22:18:54 +01:00
parent 71b2d4a696
commit bc9506866f

View File

@@ -864,6 +864,7 @@ VALUES
('api_audit.view', 'Can view API audit logs', 1, 1),
('system_audit.view', 'Can view system audit logs', 1, 1),
('system_audit.purge', 'Can purge system audit logs', 1, 1),
('api_tokens.manage', 'Can manage user API tokens', 1, 1),
('stats.view', 'Can view statistics', 1, 1)
ON DUPLICATE KEY UPDATE
`description` = VALUES(`description`),
@@ -962,6 +963,7 @@ JOIN permissions p ON p.`key` IN (
'users.lifecycle_restore',
'custom_fields.manage', 'custom_fields.edit_values',
'api_docs.view', 'docs.view',
'api_tokens.manage',
'mail_log.view', 'api_audit.view', 'system_audit.view', 'system_audit.purge',
'stats.view'
)