mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 10:03:56 +01:00
fix: account redirection not working if loggin in from a forbidden folder
This commit is contained in:
parent
c4ca0d2188
commit
ad33cbf263
5
main.pas
5
main.pas
@ -5098,7 +5098,10 @@ var
|
||||
result:=TRUE;
|
||||
specialGrant:=TRUE;
|
||||
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();
|
||||
runEventScript('unauthorized');
|
||||
getPage('login', data, f);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user