mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Fix issue on signed out site.
This commit is contained in:
parent
a100d4a403
commit
66392491b5
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user