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

MOBILE-4405 sites: Check tool_mobile_autologout instead of site version
main
Noel De Martin 2023-10-25 09:24:27 +02:00 committed by GitHub
commit 16046c15ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

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