GetPagePermissionsSimple

Fetches the permissions for a given user on a given page, but unlike GetPagePermissions it requires the user to provide the permissions a user would inherit from the page's parent.  This function is used in building menu structures to avoid excessive recursive calls

Prototype

function GetPagePermissionsSimple($PageID, $UserID, $Inherited)

Parameters

  • $PageID - a page in the CMS database
  • $UserID - a user in the CMS database
  • $Inherited - the user's permissions on the specified page's parent

Return Values

If given a valid page and user the function returns the user's permissions on that page assuming that the inherited permissions are represented accurately.  For information on the format of this variable, see Permission Constants.