@nocobase/plugin-workflow-cc 2.3.0-beta.17 → 2.3.0-beta.19

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.
@@ -9,22 +9,22 @@
9
9
 
10
10
  module.exports = {
11
11
  "react": "18.2.0",
12
- "@nocobase/client": "2.3.0-beta.17",
13
- "@nocobase/plugin-workflow": "2.3.0-beta.17",
12
+ "@nocobase/client": "2.3.0-beta.19",
13
+ "@nocobase/plugin-workflow": "2.3.0-beta.19",
14
14
  "react-i18next": "11.18.6",
15
15
  "antd-style": "3.7.1",
16
16
  "antd": "5.24.2",
17
17
  "react-router-dom": "6.30.1",
18
18
  "lodash": "4.18.1",
19
- "@nocobase/flow-engine": "2.3.0-beta.17",
20
- "@nocobase/client-v2": "2.3.0-beta.17",
19
+ "@nocobase/flow-engine": "2.3.0-beta.19",
20
+ "@nocobase/client-v2": "2.3.0-beta.19",
21
21
  "@ant-design/icons": "5.6.1",
22
22
  "ahooks": "3.7.8",
23
- "@nocobase/utils": "2.3.0-beta.17",
24
- "@nocobase/plugin-ui-schema-storage": "2.3.0-beta.17",
25
- "@nocobase/actions": "2.3.0-beta.17",
26
- "@nocobase/server": "2.3.0-beta.17",
27
- "@nocobase/database": "2.3.0-beta.17",
28
- "@nocobase/data-source-manager": "2.3.0-beta.17",
29
- "@nocobase/plugin-notification-manager": "2.3.0-beta.17"
23
+ "@nocobase/utils": "2.3.0-beta.19",
24
+ "@nocobase/plugin-ui-schema-storage": "2.3.0-beta.19",
25
+ "@nocobase/actions": "2.3.0-beta.19",
26
+ "@nocobase/server": "2.3.0-beta.19",
27
+ "@nocobase/database": "2.3.0-beta.19",
28
+ "@nocobase/data-source-manager": "2.3.0-beta.19",
29
+ "@nocobase/plugin-notification-manager": "2.3.0-beta.19"
30
30
  };
@@ -40,6 +40,7 @@ __export(actions_exports, {
40
40
  });
41
41
  module.exports = __toCommonJS(actions_exports);
42
42
  var import_actions = __toESM(require("@nocobase/actions"));
43
+ var import_plugin_workflow = require("@nocobase/plugin-workflow");
43
44
  var import_tempAssociationFields = require("./tempAssociationFields");
44
45
  const mergeAppends = (appends, required) => {
45
46
  const result = /* @__PURE__ */ new Set([...appends || []]);
@@ -48,6 +49,7 @@ const mergeAppends = (appends, required) => {
48
49
  };
49
50
  const workflowCcTasks = {
50
51
  async get(context, next) {
52
+ (0, import_plugin_workflow.sanitizeWorkflowTaskReadParams)(context);
51
53
  context.action.mergeParams({
52
54
  filter: {
53
55
  userId: context.state.currentUser.id
@@ -57,6 +59,7 @@ const workflowCcTasks = {
57
59
  },
58
60
  async listMine(context, next) {
59
61
  var _a;
62
+ (0, import_plugin_workflow.sanitizeWorkflowTaskReadParams)(context);
60
63
  context.action.mergeParams({
61
64
  filter: {
62
65
  userId: context.state.currentUser.id
@@ -177,7 +177,7 @@ class PluginWorkflowCCServer extends import_server.Plugin {
177
177
  };
178
178
  async load() {
179
179
  (0, import_actions.initActions)(this.app);
180
- this.app.acl.allow("workflowCcTasks", ["list", "listMine", "get", "read", "unread", "readAll"], "loggedIn");
180
+ this.app.acl.allow("workflowCcTasks", ["listMine", "get", "read", "unread", "readAll"], "loggedIn");
181
181
  const workflowPlugin = this.app.pm.get(import_plugin_workflow.default);
182
182
  workflowPlugin.registerInstruction("cc", import_CCInstruction.default);
183
183
  workflowPlugin.registerTaskStatsProvider(import_constants.TASK_TYPE_CC, {
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/workflow-cc",
11
11
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-cc",
12
12
  "license": "Apache-2.0",
13
- "version": "2.3.0-beta.17",
13
+ "version": "2.3.0-beta.19",
14
14
  "main": "dist/server/index.js",
15
15
  "peerDependencies": {
16
16
  "@nocobase/actions": "2.x",
@@ -30,5 +30,5 @@
30
30
  "keywords": [
31
31
  "Workflow"
32
32
  ],
33
- "gitHead": "f4203bf51579acea038f4e64f8d897bb79dfd314"
33
+ "gitHead": "16351742ce4277e96e82c2c589cee8d659a3350e"
34
34
  }