@nocobase/plugin-acl 0.7.1-alpha.6 → 0.7.2-alpha.2
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/lib/server.js +6 -0
- package/package.json +5 -5
- package/src/server.ts +5 -0
package/lib/server.js
CHANGED
|
@@ -482,6 +482,12 @@ class PluginACL extends _server().Plugin {
|
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
+
if (actionName === 'update' && resourceName === 'roles.resources') {
|
|
486
|
+
ctx.action.mergeParams({
|
|
487
|
+
updateAssociationValues: ['actions']
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
|
|
485
491
|
yield next();
|
|
486
492
|
});
|
|
487
493
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-acl",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2-alpha.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"licenses": [
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"main": "./lib/index.js",
|
|
13
13
|
"types": "./lib/index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@nocobase/acl": "0.7.
|
|
16
|
-
"@nocobase/database": "0.7.
|
|
17
|
-
"@nocobase/server": "0.7.
|
|
15
|
+
"@nocobase/acl": "0.7.2-alpha.2",
|
|
16
|
+
"@nocobase/database": "0.7.2-alpha.2",
|
|
17
|
+
"@nocobase/server": "0.7.2-alpha.2"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
21
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
22
22
|
"directory": "packages/plugins/acl"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "a0cc50154cc292248ef107c95a24bcc0c7a586fa"
|
|
25
25
|
}
|
package/src/server.ts
CHANGED
|
@@ -322,6 +322,11 @@ export class PluginACL extends Plugin {
|
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
+
if (actionName === 'update' && resourceName === 'roles.resources') {
|
|
326
|
+
ctx.action.mergeParams({
|
|
327
|
+
updateAssociationValues: ['actions'],
|
|
328
|
+
});
|
|
329
|
+
}
|
|
325
330
|
await next();
|
|
326
331
|
});
|
|
327
332
|
|