Filter Content Using Roles

If you want to display content only to users in a certain role (i.e. Contributors, Editors, Managers) you can add the following code to the appropriate view file.

#if( $user.Roles.Contains(“gManager”) )
Manager
#else
Someone Else
#end

Leave a Reply

Your email address will not be published. Required fields are marked *