Users schema roles fix after update

This commit is contained in:
vjrj 2018-04-12 17:42:06 +02:00
parent eddc97fe98
commit 8941d6e54e

View file

@ -78,11 +78,8 @@ const schemaUser = new SimpleSchema({
// Option 2: [String] type
// If you are sure you will never need to use role groups, then
// you can specify [String] as the type
roles: {
type: Array,
// autoform: { type: 'hidden' },
optional: true
},
roles: { type: Array, optional: true },
'roles.$': { type: String, optional: true },
// https://github.com/todda00/meteor-friendly-slugs/issues/1
friendlySlugs: {
type: Object,