N
N
nurise2015-06-12 18:51:02
Node.js
nurise, 2015-06-12 18:51:02

How to link meteor-useraccounts & meteor-collection2 & meteor-roles together?

You must specify the user's role during registration. As a template https://github.com/meteor-useraccounts
Collection https://github.com/aldeed/meteor-collection2/
Roles https://github.com/alanning/meteor-roles
Xs how to use them together, the only option is to refuse the first package and register the user yourself. Now the registration stupidly stops working.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
E, 2015-08-06
@aylo

Sorry for taking out the mammoth, but maybe someone will come in handy.
I would highly recommend not to refuse accounts, a handy contraption.
collection2 will pull simpleSchema along with it. Here you can already use defaultvalue .

Schema.User = new SimpleSchema({
    role: {
        type: String,
        defaultValue: "editor",
    }
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question