forked from apxtri/apxtri
remove odmdb unauthorized and wwws lobaldb
This commit is contained in:
parent
009cbcbd2f
commit
0151264143
@ -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) => {
|
||||||
|
@ -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]}`;
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user