Closed allenfuller closed 5 years ago
As is so often the case, nevermind! The application I was updating had a default Accounts.onCreateUser()
function that set a user's role to 'user' indiscriminately. This, of course, made it impossible to go back and add group-based roles.
I'm using Meteor 1.8.1 and trying to create a default user on startup with a clean install, using this code:
The user creation works just fine, but when it gets to the
Roles
part, I get the following error:Anyone else run into this issue? Any idea why I can't create a
__global_roles__
field? I ran this immediately after runningmeteor reset
, so there should not be any existing database to create problems.Thanks for any advice or feedback you may have!