Conversations page need login

This commit is contained in:
Pierre 2018-05-16 06:40:26 +02:00
parent ebd2fcf4f5
commit 19576cebed
2 changed files with 8 additions and 1 deletions

View File

@ -198,6 +198,12 @@ ComunicWeb.common.page = {
var mainContainerElem = this.emptyPage(true); var mainContainerElem = this.emptyPage(true);
} }
//Check if the page requires user login
if(pageInfos.needLogin){
if(!signed_in())
openPage("login");
}
//We check if the page is a full screen page or not //We check if the page is a full screen page or not
if(pageInfos.disableMenus){ if(pageInfos.disableMenus){
//We force the screen to be cleaned //We force the screen to be cleaned

View File

@ -47,7 +47,8 @@ ComunicWeb.pagesList = {
conversations: { conversations: {
pageTitle: "Conversations", pageTitle: "Conversations",
methodHandler: "ComunicWeb.pages.conversations.main.open", methodHandler: "ComunicWeb.pages.conversations.main.open",
disableMenus: false disableMenus: false,
needLogin: true
}, },
/** /**