This commit is contained in:
naielv
2025-08-13 22:05:43 +02:00
parent c42ebadf2d
commit 4f56f06208
9 changed files with 11 additions and 5 deletions

View File

@@ -1009,8 +1009,7 @@ function SetPages() {
if (PAGES[key].AccessControl == true) {
var roles = SUB_LOGGED_IN_DETAILS.Roles || ""
var rolesArr = roles.split(",")
var has
if (rolesArr.includes("ADMIN") || rolesArr.includes(key)) {
if (rolesArr.includes("ADMIN") || rolesArr.includes(key) || AC_BYPASS) {
} else {
return

View File

@@ -1,8 +1,9 @@
var EVENTLISTENER = null;
var EVENTLISTENER2 = null;
var urlParams = new URLSearchParams(location.search);
if (urlParams.get("hidenav") == "yes") {
document.getElementById("header_hide_query").style.display = "none";
var AC_BYPASS = false;
if (urlParams.get("ac_bypass") == "yes") {
AC_BYPASS = true;
}
var GROUPID = "";
// const PUBLIC_KEY = "~cppGiuA4UFUPGTDoC-4r2izVC3F7MfpaCmF3iZdESN4.vntmjgbAVUpF_zfinYY6EKVFuuTYxh5xOrL4KmtdTmc"

View File

@@ -1,6 +1,7 @@
PAGES.avisos = {
navcss: "btn5",
icon: "static/appico/Alert_Warning.svg",
AccessControl: true,
Title: "Avisos",
edit: function (mid) {
var nameh1 = safeuuid();

View File

@@ -1,6 +1,7 @@
PAGES.comedor = {
navcss: "btn6",
icon: "static/appico/Meal.svg",
AccessControl: true,
Title: "Menú comedor",
edit: function (mid) {
var nameh1 = safeuuid();

View File

@@ -1,7 +1,7 @@
PAGES.dataman = {
navcss: "btn1",
icon: "static/appico/Database.svg",
HasAccess: "ADMIN",
AccessControl: true,
Title: "Admin. Datos",
edit: function(mid) {
switch (mid) {

View File

@@ -1,6 +1,7 @@
PAGES.materiales = {
navcss: "btn2",
icon: "static/appico/App_Dropbox.svg",
AccessControl: true,
Title: "Materiales",
edit: function (mid) {
var nameh1 = safeuuid();

View File

@@ -1,6 +1,7 @@
PAGES.personas = {
navcss: "btn3",
icon: "static/appico/File_Person.svg",
AccessControl: true,
Title: "Personas",
edit: function (mid) {
var nameh1 = safeuuid();

View File

@@ -1,6 +1,7 @@
PAGES.resumen_diario = {
Esconder: true,
navcss: "btn3",
AccessControl: true,
Title: "Resumen Diario",
index: function () {
var table_materialesLow = safeuuid();

View File

@@ -1,6 +1,7 @@
PAGES.supercafe = {
navcss: "btn4",
icon: "static/appico/Coffee.svg",
AccessControl: true,
Title: "SuperCafé",
edit: function (mid) {
var nameh1 = safeuuid();