Skip to content

Commit

Permalink
Merge pull request #3836 from alfonso-salces/MOBILE-4405
Browse files Browse the repository at this point in the history
MOBILE-4405 sites: Check tool_mobile_autologout instead of site version
  • Loading branch information
NoelDeMartin authored Oct 25, 2023
2 parents a32f0a7 + a6903cc commit 16046c1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/core/services/sites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1487,15 +1487,10 @@ 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'));

if (autoLogoutType === CoreAutoLogoutType.NEVER || !site.id) {
if (!autoLogoutType || autoLogoutType === CoreAutoLogoutType.NEVER || !site.id) {
return;
}

Expand Down

0 comments on commit 16046c1

Please sign in to comment.