@live-change/access-control-service 0.9.156 → 0.9.158
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
|
@@ -16,7 +16,7 @@ definition.processor({
|
|
|
16
16
|
const config = action.accessControl
|
|
17
17
|
if(config.public) continue
|
|
18
18
|
|
|
19
|
-
console.log("ACCESS CONTROL", service.name, "ACTION", action.name)
|
|
19
|
+
//console.log("ACCESS CONTROL", service.name, "ACTION", action.name)
|
|
20
20
|
|
|
21
21
|
const oldExec = action.execute
|
|
22
22
|
action.execute = async (...args) => {
|
|
@@ -34,8 +34,8 @@ definition.processor({
|
|
|
34
34
|
}
|
|
35
35
|
const accessible = await access.clientHasAccessRoles(client, { objects }, config.roles)
|
|
36
36
|
|
|
37
|
-
console.log("ACTION", service.name, action.name, "ACCESS CONTROL TO",
|
|
38
|
-
objects, 'CLIENT', client, 'CONFIG', config, "ACCESSIBLE", accessible)
|
|
37
|
+
/* console.log("ACTION", service.name, action.name, "ACCESS CONTROL TO",
|
|
38
|
+
objects, 'CLIENT', client, 'CONFIG', config, "ACCESSIBLE", accessible) */
|
|
39
39
|
|
|
40
40
|
if(!accessible) throw 'notAuthorized'
|
|
41
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/access-control-service",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.158",
|
|
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.9.
|
|
24
|
+
"@live-change/framework": "^0.9.158"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "bd30de9030c65b93fbb26b6879f574d5f93baea3",
|
|
27
27
|
"type": "module"
|
|
28
28
|
}
|