@nocobase/plugin-users 2.0.0-alpha.35 → 2.0.0-alpha.36

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.
@@ -13,17 +13,17 @@ module.exports = {
13
13
  "react-i18next": "11.18.6",
14
14
  "react-router-dom": "6.30.1",
15
15
  "react": "18.2.0",
16
- "@nocobase/client": "2.0.0-alpha.35",
16
+ "@nocobase/client": "2.0.0-alpha.36",
17
17
  "antd": "5.24.2",
18
18
  "@formily/core": "2.3.7",
19
- "@nocobase/plugin-acl": "2.0.0-alpha.35",
19
+ "@nocobase/plugin-acl": "2.0.0-alpha.36",
20
20
  "@emotion/css": "11.13.0",
21
- "@nocobase/utils": "2.0.0-alpha.35",
22
- "@nocobase/database": "2.0.0-alpha.35",
23
- "@nocobase/server": "2.0.0-alpha.35",
24
- "@nocobase/plugin-user-data-sync": "2.0.0-alpha.35",
25
- "@nocobase/plugin-ui-schema-storage": "2.0.0-alpha.35",
21
+ "@nocobase/utils": "2.0.0-alpha.36",
22
+ "@nocobase/database": "2.0.0-alpha.36",
23
+ "@nocobase/server": "2.0.0-alpha.36",
24
+ "@nocobase/plugin-user-data-sync": "2.0.0-alpha.36",
25
+ "@nocobase/plugin-ui-schema-storage": "2.0.0-alpha.36",
26
26
  "lodash": "4.17.21",
27
- "@nocobase/actions": "2.0.0-alpha.35",
27
+ "@nocobase/actions": "2.0.0-alpha.36",
28
28
  "sequelize": "6.35.2"
29
29
  };
@@ -96,14 +96,6 @@ class PluginUsersServer extends import_server.Plugin {
96
96
  this.db.on("afterDefineCollection", (collection) => {
97
97
  const { createdBy, updatedBy } = collection.options;
98
98
  if (createdBy === true) {
99
- collection.setField("createdById", {
100
- type: "context",
101
- dataType: "bigInt",
102
- dataIndex: "state.currentUser.id",
103
- createOnly: true,
104
- visible: true,
105
- index: true
106
- });
107
99
  collection.setField("createdBy", {
108
100
  type: "belongsTo",
109
101
  target: "users",
@@ -125,13 +117,6 @@ class PluginUsersServer extends import_server.Plugin {
125
117
  });
126
118
  }
127
119
  if (updatedBy === true) {
128
- collection.setField("updatedById", {
129
- type: "context",
130
- dataType: "bigInt",
131
- dataIndex: "state.currentUser.id",
132
- visible: true,
133
- index: true
134
- });
135
120
  collection.setField("updatedBy", {
136
121
  type: "belongsTo",
137
122
  target: "users",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "用户",
5
5
  "description": "Provides basic user model, as well as created by and updated by fields.",
6
6
  "description.zh-CN": "提供了基础的用户模型,以及创建人和最后更新人字段。",
7
- "version": "2.0.0-alpha.35",
7
+ "version": "2.0.0-alpha.36",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/users",
@@ -27,7 +27,7 @@
27
27
  "@nocobase/test": "2.x",
28
28
  "@nocobase/utils": "2.x"
29
29
  },
30
- "gitHead": "e60da9bab9fd4c8ba9457e9806d5428054cefa7a",
30
+ "gitHead": "c1170bac3ba2325b7420ce65e732c1ba8bbb7767",
31
31
  "keywords": [
32
32
  "Users & permissions"
33
33
  ]