This project is read-only.

Orchard Roles

Topics: Core, Customizing Orchard, General
Dec 7, 2011 at 11:33 AM


At what level orchard search for user roles??

  in which module or controller or action?

Best regards

Dec 7, 2011 at 3:22 PM

Anywhere that permissions are required.

Actually, Orchard never searches directly for roles, instead it looks for specific permissions, and Orchard has a list of which roles are assigned which permissions.

Some controllers check for permissions and return a security error if not found. But there are other places you can do it: filters, handlers, drivers, anywhere really.