MDL-81072 tool_mfa: Fixed bulk user actions capability

This commit is contained in:
Stevani Andolo
2024-03-28 17:35:11 +08:00
parent 1c530d86d1
commit e67ae9fe63
+4
View File
@@ -112,6 +112,10 @@ function tool_mfa_after_config(): void {
* @return array
*/
function tool_mfa_bulk_user_actions(): array {
if (!has_capability('moodle/site:config', context_system::instance())) {
return [];
}
return [
'tool_mfa_reset_factors' => new action_link(
new moodle_url('/admin/tool/mfa/reset_factor.php'),