@steedos/standard-permission 2.4.0-beta.23 → 2.4.0-beta.25

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.
@@ -43,24 +43,6 @@ fields:
43
43
  required: true
44
44
  create: false
45
45
  sort_no: 130
46
- optionsFunction: !<tag:yaml.org,2002:js/function> |-
47
- function () {
48
- var _options;
49
-
50
- _options = [];
51
-
52
- _.forEach(Creator.objectsByName, function (o, k) {
53
- if (!o.hidden) {
54
- return _options.push({
55
- label: o.label,
56
- value: k,
57
- icon: o.icon
58
- });
59
- }
60
- });
61
-
62
- return _options;
63
- }
64
46
  name: object_name
65
47
  filterable: true
66
48
  field:
@@ -29,24 +29,6 @@ fields:
29
29
  index: true
30
30
  required: true
31
31
  create: false
32
- optionsFunction: !<tag:yaml.org,2002:js/function> |-
33
- function () {
34
- var _options;
35
-
36
- _options = [];
37
-
38
- _.forEach(Creator.objectsByName, function (o, k) {
39
- if (!o.hidden) {
40
- return _options.push({
41
- label: o.label,
42
- value: k,
43
- icon: o.icon
44
- });
45
- }
46
- });
47
-
48
- return _options;
49
- }
50
32
  name: object_name
51
33
  filterable: true
52
34
  allowRead:
@@ -13,12 +13,9 @@ fields:
13
13
  label: Object
14
14
  type: lookup
15
15
  multiple: true
16
- optionsFunction: !<tag:yaml.org,2002:js/function> |-
17
- function () {
18
- return Steedos.getObjectsOptions(function(o){
19
- return o.enable_share
20
- })
21
- }
16
+ reference_to: objects
17
+ reference_to_field: name
18
+ filters: ["enable_share", "=", true]
22
19
  required: true
23
20
  filterable: true
24
21
  filters:
@@ -15,10 +15,6 @@ fields:
15
15
  write_requires_master_read: true
16
16
  reference_to_field: name
17
17
  required: true
18
- optionsFunction: !<tag:yaml.org,2002:js/function> |-
19
- function () {
20
- return Steedos.getObjectsOptions();
21
- }
22
18
  sort_no: 120
23
19
  active:
24
20
  label: 启用
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-permission",
3
- "version": "2.4.0-beta.23",
3
+ "version": "2.4.0-beta.25",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,5 +12,5 @@
12
12
  "description": "steedos package",
13
13
  "repository": {},
14
14
  "license": "MIT",
15
- "gitHead": "02fd9ceab1405e0eddbb1752882168f0f4d660f0"
15
+ "gitHead": "1a46fbee4dd51269a59dc80ff30fde5572679c3a"
16
16
  }