// if the general permission is there, all good
if (CRM_Core_Permission::check('access deleted contacts')) {
- // if user can access delted contacts -> fine
+ // if user can access deleted contacts -> fine
return $contact_ids;
}
else {
while ($result->fetch()) {
$result_set[(int) $result->contact_id] = TRUE;
}
- $keys = array_keys($result_set);
return array_keys($result_set);
}
* driven by the wizard framework
*/
- $this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean',
- CRM_Core_DAO::$_nullObject
- );
+ $this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean');
- $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', CRM_Core_DAO::$_nullObject);
+ $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean');
$this->_groupID = CRM_Utils_Request::retrieve('gid', 'Positive', $this);
$this->_amtgID = CRM_Utils_Request::retrieve('amtgID', 'Positive', $this);
$this->_ssID = CRM_Utils_Request::retrieve('ssID', 'Positive', $this);
* the total number of rows for this action
*/
public function &getRows($action, $offset, $rowCount, $sort, $output = NULL) {
- $config = CRM_Core_Config::singleton();
if (($output == CRM_Core_Selector_Controller::EXPORT ||
$output == CRM_Core_Selector_Controller::SCREEN
* @param $rows
*/
public function addActions(&$rows) {
- $config = CRM_Core_Config::singleton();
$permissions = array(CRM_Core_Permission::getPermission());
if (CRM_Core_Permission::check('delete contacts')) {
// mask value to hide map link if there are not lat/long
$mapMask = $mask & 4095;
- // mask value to hide map link if there are not lat/long
- $mapMask = $mask & 4095;
-
// get permissions on an individual level (CRM-12645)
$can_edit_list = CRM_Contact_BAO_Contact_Permission::allowList(array_keys($rows), CRM_Core_Permission::EDIT);