@live-change/access-control-service 0.8.14 → 0.8.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accessControl.js +3 -3
- package/package.json +3 -3
package/accessControl.js
CHANGED
|
@@ -27,7 +27,7 @@ definition.processor({
|
|
|
27
27
|
config.objects ? config.objects(properties) :
|
|
28
28
|
((objectType && object) ? [{ objectType, object }] : [])
|
|
29
29
|
)
|
|
30
|
-
if(objects.length
|
|
30
|
+
if(objects.length === 0) {
|
|
31
31
|
throw new Error('no objects for access control to work')
|
|
32
32
|
}
|
|
33
33
|
const accessible = access.clientHasAccessRoles(client, { objects }, config.roles)
|
|
@@ -54,7 +54,7 @@ definition.processor({
|
|
|
54
54
|
config.objects ? config.objects(properties) :
|
|
55
55
|
((objectType && object) ? [{ objectType, object }] : [])
|
|
56
56
|
)
|
|
57
|
-
if(objects.length
|
|
57
|
+
if(objects.length === 0) {
|
|
58
58
|
throw new Error('no objects for access control to work in view ' + viewName)
|
|
59
59
|
}
|
|
60
60
|
console.log("OBJECTS", objects)
|
|
@@ -72,7 +72,7 @@ definition.processor({
|
|
|
72
72
|
config.objects ? config.objects(properties) :
|
|
73
73
|
((objectType && object) ? [{ objectType, object }] : [])
|
|
74
74
|
)
|
|
75
|
-
if(objects.length
|
|
75
|
+
if(objects.length === 0) {
|
|
76
76
|
throw new Error('no objects for access control to work')
|
|
77
77
|
}
|
|
78
78
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/access-control-service",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"url": "https://www.viamage.com/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/framework": "^0.8.
|
|
24
|
+
"@live-change/framework": "^0.8.16"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "b8ac84cbe1a8c435c7b5003dfc64ddc41a4e15a6",
|
|
27
27
|
"type": "module"
|
|
28
28
|
}
|