Difference between revisions of "PT Profile Roles Component"

From ADF Docs
Jump to: navigation, search
(Created page with '== Overview == The ProfileRoles Component is required for establishing the logic for the roles at the global and site level. The [[ProfileRoles_Compon…')
 
Line 7: Line 7:
  
 
If the site roles or role logic differs from the global, then a [[ProfileRoles_Component|ProfileRoles Component]] can be setup for the site.  Follow the wiki page for [[Load_ADF_App_Site_Components|Load ADF Application Site Components]] for details on how to override this component at the site.
 
If the site roles or role logic differs from the global, then a [[ProfileRoles_Component|ProfileRoles Component]] can be setup for the site.  Follow the wiki page for [[Load_ADF_App_Site_Components|Load ADF Application Site Components]] for details on how to override this component at the site.
 +
 +
[[Category:Profile]]

Revision as of 01:40, 24 December 2009

Overview

The ProfileRoles Component is required for establishing the logic for the roles at the global and site level.

The ProfileRoles Component contains a function setRolePermission. This function controls the rules for the profiles on the site. The function contains a switch statement for the role name passed in and then runs through logic to determine the users permission for the role.

Every time a new role is added, then a new case statement for the role should be added as well.

If the site roles or role logic differs from the global, then a ProfileRoles Component can be setup for the site. Follow the wiki page for Load ADF Application Site Components for details on how to override this component at the site.