mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-24918 backup - fix setting use leading to wrong security check error
This commit is contained in:
parent
5d31799af8
commit
9af849fa73
@ -188,8 +188,8 @@ abstract class backup_check {
|
||||
// Now, enforce 'moodle/backup:anonymise' to 'anonymise' setting, applying changes if allowed,
|
||||
// else throwing exception
|
||||
$anonsetting = $backup_controller->get_plan()->get_setting('anonymize');
|
||||
$prevvalue = $userssetting->get_value();
|
||||
$prevstatus = $userssetting->get_status();
|
||||
$prevvalue = $anonsetting->get_value();
|
||||
$prevstatus = $anonsetting->get_status();
|
||||
$hasanoncap = has_capability('moodle/backup:anonymise', $coursectx, $userid);
|
||||
|
||||
// If setting is enabled but user lacks permission
|
||||
|
Loading…
x
Reference in New Issue
Block a user