Loading modules based on user roles

Topics: Bootstrappers & IoC
Jun 26, 2012 at 4:34 PM


suppose I've got a login form (after the login form I've got in my IPrincipal the roles that the user is currently allowed to show) I wish only to load the modules that a user needs, but I don't know how to start with... I'm using Cocktail and I've seen that there's a AddXap (source relative)

but as far I've read there's another way with DirectorySource...anyone can help me on this?