Merge pull request #502 from eikek/fix-anon-page

Don't redirect to login for open pages
This commit is contained in:
mergify[bot] 2020-12-08 21:42:35 +00:00 committed by GitHub
commit 52dec662c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,11 @@ init flags url key =
[ cmd
, ic
, Api.versionInfo flags VersionResp
, Api.loginSession flags SessionCheckResp
, if Page.isSecured page then
Api.loginSession flags SessionCheckResp
else
Cmd.none
, Ports.getUiSettings flags
]
)