Results 1 to 3 of 3

Thread: SugarCRM does not keep track on record deletion

  1. #1
    chinwoei's Avatar
    chinwoei is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    91

    Default SugarCRM does not keep track on record deletion

    Hi guys,

    Last time I did feedback that a security issue on the record deletion.
    SugarCRM are not keep track on the user that delete a particular records.
    Why??
    I am from iZeno Pte Ltd
    Personal Site: Technical Sharing
    SugarForge Project:
    iZeno SMS : http://www.sugarforge.org/projects/izeno-sms/

  2. #2
    eNick is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    282

    Default Re: SugarCRM does not keep track on record deletion

    Probably because that's a feature request not a security issue. Some companies trust their staff, some don't. You always have the option of preventing users from deleting records through their security role.


    It's also simple enough to code up a logic hook to record deletions to a log file if it's something you need.
    T H E S U G A R R E F I N E R Y
    : : : SugarCrm Customisation and Integration Services : : :

    SugarCRM Systems Integration Partner
    Trusted with SugarCRM
    http://www.theSugarRefinery.com ::: sales@{removethis}theSugarRefinery.com

  3. #3
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: SugarCRM does not keep track on record deletion

    I inserted in the logic_hook for critical objects (e.g. contacts) for event "after_delete" the lines

    PHP Code:
     $db = & PearDatabase::getInstance(); 
     
    global 
    $current_user;
    $taeter $current_user->id;
    $query "INSERT INTO contacts_audit (id,parent_id,date_created,created_by,field_name,data_type,before_value_string,after_value_string) ".
    "VALUES (uuid(),'$focus->id',now(),'$taeter','deleted','bool','0','1');";
    $result $db->query($querytrue,"Error auditing contacts.deleted: "); 
    Now I can see in deleted and restored objects history a delete entry.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Email IMAP SSL issue ( with error log )
    By clearlink in forum Help
    Replies: 16
    Last Post: 2009-11-16, 01:50 AM
  2. Replies: 7
    Last Post: 2009-06-29, 09:24 AM
  3. Replies: 16
    Last Post: 2008-08-11, 08:58 PM
  4. Custom module - relation works one way but not the other
    By stevenjohn in forum Developer Help
    Replies: 15
    Last Post: 2008-06-06, 02:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •