mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Fix issue on signed out site.
This commit is contained in:
		@@ -30,12 +30,14 @@ ComunicWeb.pages.groups.main = {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//Check if the main page has to be opened
 | 
							//Check if the main page has to be opened
 | 
				
			||||||
		if(page == "main" && signed_in()){
 | 
							if(page == "main"){
 | 
				
			||||||
 | 
								if(!signed_in()) openPage("login");
 | 
				
			||||||
			return ComunicWeb.pages.groups.pages.main.open(target);
 | 
								return ComunicWeb.pages.groups.pages.main.open(target);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//Check if the page to create a group has to be opened
 | 
							//Check if the page to create a group has to be opened
 | 
				
			||||||
		else if (page == "create" && signed_in()){
 | 
							else if (page == "create"){
 | 
				
			||||||
 | 
								if(!signed_in()) openPage("login");
 | 
				
			||||||
			return ComunicWeb.pages.groups.pages.create.open(target);
 | 
								return ComunicWeb.pages.groups.pages.create.open(target);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user