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 // Option 2: [String] type
// If you are sure you will never need to use role groups, then // If you are sure you will never need to use role groups, then
// you can specify [String] as the type // you can specify [String] as the type
roles: { roles: { type: Array, optional: true },
type: Array, 'roles.$': { type: String, optional: true },
// autoform: { type: 'hidden' },
optional: true
},
// https://github.com/todda00/meteor-friendly-slugs/issues/1 // https://github.com/todda00/meteor-friendly-slugs/issues/1
friendlySlugs: { friendlySlugs: {
type: Object, type: Object,