mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-03-18 07:02:57 +00:00
Merge pull request #6035 from eggsurplus/patch-9
Show only if user has rights to activity/history record
This commit is contained in:
commit
0268c938f7
1 changed files with 20 additions and 0 deletions
|
@ -130,6 +130,10 @@ class Popup_Picker
|
|||
}
|
||||
|
||||
foreach ($focus_tasks_list as $task) {
|
||||
if (!$task->ACLAccess('list')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$sort_date_time='';
|
||||
if (empty($task->date_due) || $task->date_due == '0000-00-00') {
|
||||
$date_due = '';
|
||||
|
@ -182,6 +186,11 @@ class Popup_Picker
|
|||
} // end Tasks
|
||||
|
||||
foreach ($focus_meetings_list as $meeting) {
|
||||
|
||||
if (!$meeting->ACLAccess('list')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (empty($meeting->contact_id) && empty($meeting->contact_name)) {
|
||||
$meeting_contacts = $meeting->get_linked_beans('contacts', 'Contact');
|
||||
if (!empty($meeting_contacts[0]->id) && !empty($meeting_contacts[0]->name)) {
|
||||
|
@ -230,6 +239,11 @@ class Popup_Picker
|
|||
} // end Meetings
|
||||
|
||||
foreach ($focus_calls_list as $call) {
|
||||
|
||||
if (!$call->ACLAccess('list')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (empty($call->contact_id) && empty($call->contact_name)) {
|
||||
$call_contacts = $call->get_linked_beans('contacts', 'Contact');
|
||||
if (!empty($call_contacts[0]->id) && !empty($call_contacts[0]->name)) {
|
||||
|
@ -278,6 +292,9 @@ class Popup_Picker
|
|||
} // end Calls
|
||||
|
||||
foreach ($focus_emails_list as $email) {
|
||||
if (!$email->ACLAccess('list')) {
|
||||
continue;
|
||||
}
|
||||
if (empty($email->contact_id) && empty($email->contact_name)) {
|
||||
$email_contacts = $email->get_linked_beans('contacts', 'Contact');
|
||||
if (!empty($email_contacts[0]->id) && !empty($email_contacts[0]->name)) {
|
||||
|
@ -355,6 +372,9 @@ class Popup_Picker
|
|||
} //end Unlinked Emails
|
||||
|
||||
foreach ($focus_notes_list as $note) {
|
||||
if (!$note->ACLAccess('list')) {
|
||||
continue;
|
||||
}
|
||||
if ($note->ACLAccess('view')) {
|
||||
$summary_list[] = array(
|
||||
'name' => $note->name,
|
||||
|
|
Loading…
Reference in a new issue