Skip to content

Commit a6903cc

Browse files
MOBILE-4405 sites: Check tool_mobile_autologout instead of site version
1 parent a32f0a7 commit a6903cc

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/core/services/sites.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,15 +1487,10 @@ export class CoreSitesProvider {
14871487
await CoreUtils.ignoreErrors(( async () => {
14881488
const siteId = await this.getStoredCurrentSiteId();
14891489
const site = await this.getSite(siteId);
1490-
1491-
if (!site.isVersionGreaterEqualThan('4.3')) {
1492-
return;
1493-
}
1494-
14951490
const autoLogoutType = Number(site.getStoredConfig('tool_mobile_autologout'));
14961491
const autoLogoutTime = Number(site.getStoredConfig('tool_mobile_autologouttime'));
14971492

1498-
if (autoLogoutType === CoreAutoLogoutType.NEVER || !site.id) {
1493+
if (!autoLogoutType || autoLogoutType === CoreAutoLogoutType.NEVER || !site.id) {
14991494
return;
15001495
}
15011496

0 commit comments

Comments
 (0)