Skip to content

Commit

Permalink
MDL-67791 mod_h5pactivity: adding review attempts capability
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranrecio committed May 14, 2020
1 parent 4d0241e commit ebec56d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mod/h5pactivity/db/access.php
Expand Up @@ -56,4 +56,15 @@
'student' => CAP_ALLOW
],
],

'mod/h5pactivity:reviewattempts' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/grade:manage'
),
];
1 change: 1 addition & 0 deletions mod/h5pactivity/lang/en/h5pactivity.php
Expand Up @@ -47,6 +47,7 @@
$string['grade_last_attempt'] = 'Last attempt';
$string['grade_first_attempt'] = 'First attempt';
$string['h5pactivity:addinstance'] = 'Add a new H5P';
$string['h5pactivity:reviewattempts'] = 'Review H5P attempts';
$string['h5pactivity:submit'] = 'Submit H5P attempts';
$string['h5pactivity:view'] = 'View H5P';
$string['h5pactivityfieldset'] = 'H5P settings';
Expand Down

0 comments on commit ebec56d

Please sign in to comment.