MDL-83396 core_ai: Create AI policy acceptance report

This commit is contained in:
David Woloszyn
2024-11-29 17:40:06 +11:00
parent 505a85eb9a
commit a2f4f5bd3b
9 changed files with 347 additions and 1 deletions
+9
View File
@@ -2810,4 +2810,13 @@ $capabilities = array(
'user' => CAP_ALLOW,
],
],
// Allow managers to view the AI policy acceptance report.
'moodle/ai:viewaipolicyacceptancereport' => [
'riskbitmask' => RISK_PERSONAL,
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => [
'manager' => CAP_ALLOW,
],
],
);