nicolaslopezj / roles

The most advanced roles package for meteor
MIT License
87 stars 13 forks source link

quick role implementation question #16

Open avishaan opened 8 years ago

avishaan commented 8 years ago

In orion the admin has the ability to add an "admin" role to any user via this interface image

I would like my custom roles to show up here as well. Is there another library/package I need to integrate in order to make this happen or would there be a better way to do it?

tom-on-the-internet commented 8 years ago

Hello! If you are defining your roles in common code, they should appear. Something like frontDesk = new Roles.Role('Front Desk'); admissions = new Roles.Role('Admissions'); Check out http://docs.orionjs.org/v1.7/roles for more information

avishaan commented 8 years ago

That worked but I can't actually click on the role to select it. Do you have a quick example of how I can allow an admin to assign roles to other users by clicking on the appropriate checkbox.