1
0
forked from apxtri/apxtri

remove odmdb unauthorized and wwws lobaldb

This commit is contained in:
philc 2024-05-21 09:18:52 +02:00
parent 009cbcbd2f
commit 0151264143
3 changed files with 13 additions and 2 deletions

View File

@ -430,7 +430,7 @@ Odmdb.search = (objectPathname, objsearch, role) => {
if (accessright.R.length==0 || accessright.R.includes(f)) { if (accessright.R.length==0 || accessright.R.includes(f)) {
ifields[f] = itm[f]; ifields[f] = itm[f];
} else { } else {
ifields[f] = "unauthorized"; //ifields[f] = "unauthorized";
} }
}); });
} else { } else {
@ -566,6 +566,7 @@ Odmdb.accessright = (apxaccessrights, role) => {
//if (log) console.log(currentmod,"apxaccessrights",apxaccessrights) //if (log) console.log(currentmod,"apxaccessrights",apxaccessrights)
//if (log) console.log(currentmod,"role",role) //if (log) console.log(currentmod,"role",role)
const accessright = {}; const accessright = {};
console.log()
role.xprofils.forEach((p) => { role.xprofils.forEach((p) => {
if (apxaccessrights[p]) { if (apxaccessrights[p]) {
Object.keys(apxaccessrights[p]).forEach((act) => { Object.keys(apxaccessrights[p]).forEach((act) => {

View File

@ -105,6 +105,15 @@ Wwws.initlocaldata = (tribe, appname, pagename, version, profils, lg) => {
} }
}); });
} }
if (!loc.tpl) loc.tpl={};
if (!loc.tpldata) loc.tpldata={};
if (loc.components){
loc.components.forEach(c=>{
const componame=path.basename(c)
loc.tpl[componame]=`${c}/${componame}.mustache`
loc.tpldata[componame]=`${c}/${componame}`
})
}
if (loc.tpl) { if (loc.tpl) {
Object.keys(loc.tpl).forEach((r) => { Object.keys(loc.tpl).forEach((r) => {
let src = `../../${loc.tpl[r]}`; let src = `../../${loc.tpl[r]}`;

View File

@ -55,6 +55,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@editorjs/editorjs": "^2.26.5", "@editorjs/editorjs": "^2.26.5",
"@google/generative-ai": "^0.11.3",
"apidoc": "^0.54.0", "apidoc": "^0.54.0",
"async": "^3.2.0", "async": "^3.2.0",
"axios": "^1.6.2", "axios": "^1.6.2",