All Data Structures Functions Variables Pages
Static Public Member Functions
LeadsControllerSecurityUtil Class Reference
Inheritance diagram for LeadsControllerSecurityUtil:
ControllerSecurityUtil

Static Public Member Functions

static resolveCanUserProperlyConvertLead ($userCanAccessContacts, $userCanAccessAccounts, $convertToAccountSetting)
 
static resolveCanUserProperlyConvertLeadFinalStep ($userCanAccessContacts, $userCanAccessOpportunities, $convertToOpportunitySetting)
 
- Static Public Member Functions inherited from ControllerSecurityUtil
static doesCurrentUserHavePermissionOnSecurableItem ($securableItem, $permissionToCheck)
 
static resolveAccessCanCurrentUserReadModel (RedBeanModel $model, $fromAjax=false)
 
static resolveAccessCanCurrentUserWriteModel (RedBeanModel $model, $fromAjax=false)
 
static resolveAccessCanCurrentUserDeleteModel (RedBeanModel $model, $fromAjax=false)
 
static resolveAccessCanCurrentUserWriteModule ($moduleClassName, $fromAjax=false)
 
static resolveCanCurrentUserAccessModule ($moduleClassName, $fromAjax=false)
 

Additional Inherited Members

- Static Protected Member Functions inherited from ControllerSecurityUtil
static processAccessFailure ($fromAjax=false, $nonAjaxFailureMessageContent=null)
 
static renderAccessFailureContent ($fromAjax=false, $nonAjaxFailureMessageContent=null)
 

Detailed Description

Helper class to assist with security checks in the leads module specific controllers

Definition at line 40 of file LeadsControllerSecurityUtil.php.

Member Function Documentation

static resolveCanUserProperlyConvertLead (   $userCanAccessContacts,
  $userCanAccessAccounts,
  $convertToAccountSetting 
)
static

There are several scenarios that can occur where a user has the right to convert, but is missing other rights in order to properly utilize the convert mechanism. This method checks for those conditions, and if present, will alert the user that there is a misconfiguration and they should contact their administrator. Scenario #1 - User does not have access to contacts Scenario #2 - User cannot access accounts and an account is required for conversion

Definition at line 49 of file LeadsControllerSecurityUtil.php.

static resolveCanUserProperlyConvertLeadFinalStep (   $userCanAccessContacts,
  $userCanAccessOpportunities,
  $convertToOpportunitySetting 
)
static

There are several scenarios that can occur where a user has the right to convert, but is missing other rights in order to properly utilize the convert mechanism. This method checks for those conditions, and if present, will alert the user that there is a misconfiguration and they should contact their administrator. Scenario #1 - User does not have access to contacts Scenario #2 - User cannot access opportunities and an opportunity is required for conversion

Definition at line 90 of file LeadsControllerSecurityUtil.php.


The documentation for this class was generated from the following file:
Generated on Tue Jan 28 2020 07:10:33