forked from EVOgeek/Vmeda.Online
		
	MOBILE-4405 sites: Check tool_mobile_autologout instead of site version
This commit is contained in:
		
							parent
							
								
									a32f0a70ae
								
							
						
					
					
						commit
						a6903ccb3b
					
				| @ -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; | ||||
|             } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user