Skip to content

Commit

Permalink
Merge pull request #3831 from alfonso-salces/MOBILE-4405
Browse files Browse the repository at this point in the history
MOBILE-4405 sites: Fix sites older than 4.3 autologout
  • Loading branch information
NoelDeMartin authored Oct 23, 2023
2 parents e7c07e0 + 7e90f2e commit 1edc59f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/services/sites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand Down

0 comments on commit 1edc59f

Please sign in to comment.