javascript - What are the pros and cons of using Meteor-Roles? -
i'm looking make app there admin account can manage other user's profiles. question is, pros of using meteor-roles? watched video on youtube , looked through documentation, seems use pub/sub , on create add field named "role:". need package? seems meteor's built-in pub/sub , oncreate function simple , enough accomplish feature?
you roll own (bad pun intended, sorry), why? source code available: meteor-roles .
when decide need it, add it. if don't think need yet, don't add yet.
i use apply "admin" role users, , "blocked" role others prevents them logging in. package gives handy functions add roles users, or check see if user has role. can handy finer-level control on publications (e.g. users might have read-only access, whereas users role might have read-write access).
Comments
Post a Comment