backend/config/api/forms/sharing.config.js

65 lines
1.3 KiB
JavaScript
Raw Normal View History

module.exports = exports = {
page: {
fields: {
PageId: {
required: true,
coerce: String,
},
},
},
page_level: {
fields: {
PageId: {
required: true,
coerce: String,
},
user_id: {
required: true,
coerce: String,
},
level: {
required: true,
coerce: String,
in_set: ['view', 'update', 'manage'],
},
},
},
page_link: {
fields: {
PageId: {
required: true,
coerce: String,
},
level: {
required: true,
coerce: String,
in_set: ['view', 'update', 'manage'],
},
},
},
page_user: {
fields: {
PageId: {
required: true,
coerce: String,
},
user_id: {
required: true,
coerce: String,
},
},
},
permission_check: {
fields: {
permission: {
required: true,
coerce: String,
},
},
},
}