Commit 9605b2fa authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1479434: $SESSION undefined for validation step"

parents e9d202ca 7b212c53
......@@ -169,7 +169,7 @@ $form = pieform(array(
function progressbarform_validate(Pieform $form, $values) {
global $USER;
global $SESSION, $USER;
$inst = $values['institution'];
if (empty($inst) || !$USER->can_edit_institution($inst)) {
$SESSION->add_error_msg(get_string('notadminforinstitution', 'admin'));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment