accessmanager.cfc

CFIDE.adminapi.accessmanager
Component accessmanager (Access Manager)

Provides functions to check whether the current user has the access rights required for invoking functions

hierarchy: WEB-INF.cftags.component
CFIDE.adminapi.accessmanager
path: {web-root}\CFIDE\adminapi\accessmanager.cfc
serializable: Yes
properties:
methods: canAccessPage, checkAdminRoles, checkRootAdminUser

* – private method

canAccessPage
public boolean canAccessPage ( required string page
)

Indicates whether or not the current user can access the specified page

Output: suppressed
Parameters:
page: string, required, page

checkAdminRoles
public checkAdminRoles ( requiredRoles="", boolean checkAllRoles="true"
)

Checks whether the current user is in the required administrative roles, else throws an error.

Output: suppressed
Parameters:
requiredRoles: any, optional, requiredRoles – List of required roles.
checkAllRoles: boolean, optional, checkAllRoles

checkRootAdminUser
public checkRootAdminUser (

)

Checks whether the current user is the root admin user, else throws an error.

Output: suppressed