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??
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/
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
I inserted in the logic_hook for critical objects (e.g. contacts) for event "after_delete" the lines
Now I can see in deleted and restored objects history a delete entry.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($query, true,"Error auditing contacts.deleted: ");
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks