MDL-83395 core_ai: AI usage report

This commit is contained in:
David Woloszyn
2024-12-19 10:51:43 +11:00
parent a97ddeb2a2
commit af7ca95b3f
11 changed files with 611 additions and 1 deletions
+9
View File
@@ -2819,4 +2819,13 @@ $capabilities = array(
'manager' => CAP_ALLOW,
],
],
// Allow managers to view the AI usage report.
'moodle/ai:viewaiusagereport' => [
'riskbitmask' => RISK_PERSONAL,
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => [
'manager' => CAP_ALLOW,
],
],
);