Skip to content

Commit 51cbfa7

Browse files
Merge pull request #247 from themost-framework/ignore-anonymous-groups
Ignore anonymous groups during permission checks
2 parents 5ecef99 + 3749f0c commit 51cbfa7

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

data-permission.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,10 @@ function anonymousUser(context, callback) {
683683
callback(err);
684684
}
685685
else {
686-
callback(null, result || { id:null, name:'anonymous', groups:[], enabled:false});
686+
if (result) {
687+
result.groups = [];
688+
}
689+
callback(null, result || {id: null, name: 'anonymous', groups: [], enabled: false});
687690
}
688691
});
689692
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@themost/data",
3-
"version": "2.6.99",
3+
"version": "2.6.100",
44
"description": "MOST Web Framework Codename Blueshift - Data module",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)