forked from apxtri/apxtri
add test accessright.R exist before testing readibility from search
This commit is contained in:
parent
53fad87b25
commit
4fb624162e
@ -437,7 +437,7 @@ Odmdb.search = (objectPathname, objsearch, role) => {
|
||||
role.xprofils = role.xprofils.filter((e) => e !== "owner");
|
||||
}
|
||||
objsearch.fields.forEach((f) => {
|
||||
if (accessright.R.length == 0 || accessright.R.includes(f)) {
|
||||
if (accessright.R && accessright.R.length == 0 || accessright.R.includes(f)) {
|
||||
ifields[f] = itm[f];
|
||||
} else {
|
||||
//ifields[f] = "unauthorized";
|
||||
|
Loading…
x
Reference in New Issue
Block a user