@live-change/framework 0.9.159 → 0.9.161
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
export default function clientSideFilter(service, definition, app) {
|
|
2
|
+
export default function clientSideFilter(service, definition, app, client) {
|
|
3
3
|
/* for(let actionName in service.actions) {
|
|
4
4
|
const action = service.actions[actionName]
|
|
5
5
|
|
|
@@ -15,8 +15,11 @@ export default function clientSideFilter(service, definition, app) {
|
|
|
15
15
|
if(model.indexes) delete model.indexes
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
if(!(client.roles.includes('admin'))) {
|
|
19
|
+
delete definition.triggers
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
delete definition.events
|
|
20
23
|
delete definition.authenticators
|
|
21
24
|
delete definition.processors
|
|
22
25
|
delete definition.validators
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/framework",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.161",
|
|
4
4
|
"description": "Live Change Framework - ultimate solution for real time mobile/web apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/live-change/live-change-stack",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@live-change/dao": "^0.9.
|
|
26
|
-
"@live-change/uid": "^0.9.
|
|
25
|
+
"@live-change/dao": "^0.9.161",
|
|
26
|
+
"@live-change/uid": "^0.9.161",
|
|
27
27
|
"typedoc": "0.28.3",
|
|
28
28
|
"typedoc-plugin-markdown": "^4.6.3",
|
|
29
29
|
"typedoc-plugin-rename-defaults": "^0.7.3"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "1361610ea2c25bfecff4ec102cde2fd2aecbdb53"
|
|
32
32
|
}
|