static function updateCiviACL(&$params, $op)
 {
     $dao = new CRM_ACL_DAO_ACL();
     $dao->object_table = 'civicrm_saved_search';
     $dao->object_id = $params['civicrm_group_id'];
     if ($op == 'delete') {
         $dao->delete();
         return;
     }
     $dao->find(TRUE);
     $dao->entity_table = 'civicrm_acl_role';
     $dao->entity_id = $params['acl_role_id'];
     $dao->operation = 'Edit';
     $dao->is_active = TRUE;
     $dao->save();
     $params['acl_id'] = $dao->id;
 }
 /**
  * Function to delete ACL records
  *
  * @param  int  $aclId     ID of the ACL record to be deleted.
  *
  * @access public
  * @static
  */
 static function del($aclId)
 {
     // delete all entries from the acl cache
     CRM_ACL_BAO_Cache::resetCache();
     $acl = new CRM_ACL_DAO_ACL();
     $acl->id = $aclId;
     $acl->delete();
 }
示例#3
0
 /**
  * Function to delete ACL records 
  * 
  * @param  int  $aclId     ID of the ACL record to be deleted.
  * 
  * @access public
  * @static
  */
 static function del($aclId)
 {
     // delete all entries from the acl cache
     require_once 'CRM/ACL/BAO/Cache.php';
     CRM_ACL_BAO_Cache::resetCache();
     $acl = new CRM_ACL_DAO_ACL();
     $acl->id = $aclId;
     $acl->delete();
 }