diff --git a/src/app_logic.js b/src/app_logic.js index 847c4ac..0895a02 100644 --- a/src/app_logic.js +++ b/src/app_logic.js @@ -32,6 +32,7 @@ if (urlParams.get("login") != null) { urlParams.get("login").split(":")[1] ); //location.search = ""; + SetPages() } function open_page(params) { diff --git a/src/app_modules.js b/src/app_modules.js index 70bc6a5..7fdc611 100644 --- a/src/app_modules.js +++ b/src/app_modules.js @@ -1001,10 +1001,14 @@ function BuildQR(mid) { const PAGES = {}; function SetPages() { + document.getElementById("appendApps2").innerHTML = "" Object.keys(PAGES).forEach((key) => { if (PAGES[key].Esconder == true) { return; } + if (typeof PAGES[key].HasAccess == "function" & PAGES[key].HasAccess() == False) { + return; + } var a = document.createElement("a"); var img = document.createElement("img") var label = document.createElement("div")