|
@@ -107,7 +107,7 @@ module.exports = async (dbName='shop-roles') => {
|
|
|
}
|
|
|
SlicedSavable.addClass(Image)
|
|
|
|
|
|
- class Good extends SlicedSavable {
|
|
|
+ class Good extends OwnerSlicedSavable {
|
|
|
constructor(...params){
|
|
|
super(...params)
|
|
|
}
|
|
@@ -128,6 +128,10 @@ module.exports = async (dbName='shop-roles') => {
|
|
|
delete: ['admin']
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ static get guestRelations(){
|
|
|
+ return ['orderGoods']
|
|
|
+ }
|
|
|
}
|
|
|
SlicedSavable.addClass(Good)
|
|
|
|
|
@@ -212,6 +216,7 @@ module.exports = async (dbName='shop-roles') => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
static get defaultPermissions(){
|
|
|
return {
|
|
|
//savable refs, objectid's, words like 'tags' or 'roles'
|