Meteor-Community-Packages / meteor-roles

Authorization package for Meteor, compatible with built-in accounts packages
http://meteor-community-packages.github.io/meteor-roles/
MIT License
921 stars 167 forks source link

Getting error: "Invalid definition for roles field: type may not be an array. Change it to Array." when setting schema for "roles" on Meteor's users collection #242

Closed hems closed 7 years ago

hems commented 7 years ago

Am slightly confused if this issue is relevant to this project or node-simple-schema so i'm linking this issue on both repos.

Apologies for the noise

hems commented 7 years ago

fixed by updating schema to:

  roles: {
    type: object,
    optional: true,
    blackbox: true
  },