Merge branch 'MDL-81983_403' of https://github.com/lostrogit/moodle into MOODLE_403_STABLE

This commit is contained in:
Sara Arjona
2024-05-29 14:07:40 +02:00
-4
View File
@@ -26,10 +26,6 @@
$sitecontext = context_system::instance();
$site = get_site();
if (!has_capability('moodle/user:update', $sitecontext) and !has_capability('moodle/user:delete', $sitecontext)) {
throw new \moodle_exception('nopermissions', 'error', '', 'edit/delete users');
}
$stredit = get_string('edit');
$strdelete = get_string('delete');
$strdeletecheck = get_string('deletecheck');