fix: account redirection not working if loggin in from a forbidden folder

This commit is contained in:
Massimo Melina 2020-05-28 12:43:34 +02:00
parent c4ca0d2188
commit ad33cbf263

View File

@ -5098,7 +5098,10 @@ var
result:=TRUE; result:=TRUE;
specialGrant:=TRUE; specialGrant:=TRUE;
end; end;
if result then exit; if result then
exit;
if f.isFolder() and sessionRedirect() then // forbidden folder, but we were asked to go elsewhere
exit;
conn.reply.realm:=f.getShownRealm(); conn.reply.realm:=f.getShownRealm();
runEventScript('unauthorized'); runEventScript('unauthorized');
getPage('login', data, f); getPage('login', data, f);