Commit c1e41116 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix broken anonymous feedback on views with secret url access


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent dbfd7999
......@@ -53,8 +53,8 @@ else if ($usertoken) {
if (!$viewid = get_view_from_token($usertoken, true)) {
throw new AccessDeniedException(get_string('accessdenied', 'error'));
}
if ($usertoken != get_cookie('mviewaccess:'.$viewid)) {
set_cookie('mviewaccess:'.$viewid, $usertoken);
if ($usertoken != get_cookie('viewaccess:'.$viewid)) {
set_cookie('viewaccess:'.$viewid, $usertoken);
}
}
else {
......
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