Skip to content

Commit

Permalink
IOMAD: 4.1 / 4.2 Login As is broken #1937
Browse files Browse the repository at this point in the history
  • Loading branch information
turf212 committed Mar 12, 2024
1 parent c848658 commit dffd7c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions course/loginas.php
Expand Up @@ -77,6 +77,10 @@
}
}

// IOMAD - unset the company
unset ($SESSION->currenteditingcompany);
unset ($SESSION->company);

// Login as this user and return to course home page.
\core\session\manager::loginas($userid, $context);
// Add a notification to let the logged in as user know that all content will be force cleaned
Expand Down

0 comments on commit dffd7c2

Please sign in to comment.