Skip to content

Commit a6a5152

Browse files
committed
[crud-context] readable app check condition updated.
1 parent 6bb3531 commit a6a5152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/express/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ Promise.all([plugins.dbConnection(countlyConfig), plugins.dbConnection("countly_
10251025
var readableAppIds = Object.keys(member.permission.r).filter(readableApp => readableApp !== 'global');
10261026
var preparedAppIds = [];
10271027
for (let i = 0; i < readableAppIds.length; i++) {
1028-
if (readableAppIds[i] !== 'undefined' && (member.permission.r[readableAppIds[i]].all || Object.keys(member.permission.r[readableAppIds[i]].allowed).length > 1)) {
1028+
if (readableAppIds[i] !== 'undefined' && (member.permission.r[readableAppIds[i]].all || Object.keys(member.permission.r[readableAppIds[i]].allowed).length > 0)) {
10291029
preparedAppIds.push(countlyDb.ObjectID(readableAppIds[i]));
10301030
}
10311031
}

0 commit comments

Comments
 (0)