Commit 4b53f8fe authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1394082: Stop mnet url fall back to added id value



behatnotneeded

Change-Id: I7ccf01a05b3a229916a4d3b4138faaaab47dd7c0
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent f81f9fa3
......@@ -41,10 +41,11 @@ if (
// access key for roaming teachers
// TODO: The mt token is used by the old token-based Mahara assignment submission
// access system, which is now deprecated. Remove eventually.
$mnettoken = $SESSION->get('mnetuser') ? param_alphanum('mt', null) : null;
$mnettoken = param_alphanum('mt', null);
$mnettokenaccess = $SESSION->get('mnetuser') ? $mnettoken : null;
// access key for logged out users
$usertoken = (is_null($mnettoken) && get_config('allowpublicviews')) ? param_alphanum('t', null) : null;
$usertoken = (is_null($mnettokenaccess) && get_config('allowpublicviews')) ? param_alphanum('t', null) : null;
$viewtoken = null;
if ($mnettoken) {
$viewtoken = get_view_from_token($mnettoken, false);
......
Supports Markdown
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