This might seem a bit odd, but in some cases it can be quite useful to have a role that will tell you when a user is not in another role. For instance you don’t want to bother super users with content intended for newbies. So, you simple make a NotSuperUser role using this role provider.
<add name="NotAdmin" type="EPiServer.Research.VirtualRoles.NotInRole, VirtualRolesSamplePack" role="Administrators"/>

As you see, only one parameter, role which should be the name of the role the user shouldn’t be in to be in this one :-)

Last edited Nov 2, 2009 at 6:57 PM by AllanThraen, version 1

Comments

No comments yet.