Forum

HomeHomeCoreCoreSamples and oth...Samples and oth...Determine If User belongs to Tab &/Or Module RolesDetermine If User belongs to Tab &/Or Module Roles
Previous
 
Next
New Post
11/17/2008 8:25 PM
 

The example attached demonstrates how to determine if a given user belongs to the view or edit roles from the DNN page & module settings. It calls 2 existing DNN stored procedures in order to derive the page & module roles and then uses the OWS {IsInRole} function to determine if the current user belongs to those roles.  It is usefull in situations where you want to do something different based on a users permissions.  The example also compares the {CanEdit} function to these custom functions.

This example also introduces dynamic variables.  These are variables whose names are determined from other variables at runtime.

Cheers
John

Previous
 
Next
HomeHomeCoreCoreSamples and oth...Samples and oth...Determine If User belongs to Tab &/Or Module RolesDetermine If User belongs to Tab &/Or Module Roles


 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seattle, WA • info@openwebstudio.com

Bookmark & Share Bookmark and Share