@steedos/standard-permission 2.7.18-beta.14 → 2.7.18-beta.16
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.
|
@@ -115,16 +115,4 @@ Creator.Objects['permission_set'].triggers = Object.assign({}, Creator.Objects['
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
|
-
"before.remove.server.check": {
|
|
119
|
-
on: "server",
|
|
120
|
-
when: "before.remove",
|
|
121
|
-
todo: function (userId, doc) {
|
|
122
|
-
var documents, object_collections;
|
|
123
|
-
console.log('permission_objects', {permission_set_id: doc._id, space: doc.space});
|
|
124
|
-
var pero= Creator.getCollection("permission_objects").find({permission_set_id: doc._id, space: doc.space}, {fields:{_id:1}});
|
|
125
|
-
if (pero.count() > 0) {
|
|
126
|
-
throw new Meteor.Error(500, `此记录已在对象权限中引用`);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
118
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-permission",
|
|
3
|
-
"version": "2.7.18-beta.
|
|
3
|
+
"version": "2.7.18-beta.16",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"repository": {},
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "700b7c1c1586d3552bb121845a87788a35861d1c",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"clone": "^2.1.2"
|
|
18
18
|
}
|