Merge pull request #3831 from alfonso-salces/MOBILE-4405

MOBILE-4405 sites: Fix sites older than 4.3 autologout
main
Noel De Martin 2023-10-23 11:25:44 +02:00 committed by GitHub
commit 1edc59f1c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1487,6 +1487,11 @@ export class CoreSitesProvider {
await CoreUtils.ignoreErrors(( async () => {
const siteId = await this.getStoredCurrentSiteId();
const site = await this.getSite(siteId);
if (!site.isVersionGreaterEqualThan('4.3')) {
return;
}
const autoLogoutType = Number(site.getStoredConfig('tool_mobile_autologout'));
const autoLogoutTime = Number(site.getStoredConfig('tool_mobile_autologouttime'));