Results 1 to 3 of 3

Thread: View Summary and Security of Notes

  1. #1
    datatoo is offline Member
    Join Date
    Jan 2010
    Posts
    11

    Default View Summary and Security of Notes

    History can indeed limit exposure of notes using roles and teams. How do I do the same thing for the View Summary which pops up and shows everything?

    The activities/popup_picker.php and html I can see can be adjusted to eliminate notes, but I only want to limit them to people who SHOULD be viewing them.

    How is the query generated for these notes, I am puzzled. The Workroom module does the same thing and exposes all notes, even when if they should be limited to a group.

    This is my first week of looking at sugar code and so I am feeling a little lost.

    We have fieldreps and managers as a groups and don't want the reps to always see every note related to an account or contact.
    Thanks

  2. #2
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: View Summary and Security of Notes

    Please add a bug for this at http://bugs.sugarcrm.com, as it sounds to me like a possible product issue. In the meantime, change this section of code in modules/Activities/Popup_picker.php from:

    PHP Code:
    foreach ($focus_notes_list as $note) {
                
    $history_list[] = array('name' => $note->name
    to:

    PHP Code:
    foreach ($focus_notes_list as $note) {
                if(!
    $note->ACLAccess('view')){
                    continue;
                }
                
    $history_list[] = array('name' => $note->name

  3. #3
    datatoo is offline Member
    Join Date
    Jan 2010
    Posts
    11

    Default Re: View Summary and Security of Notes

    Thanks that did the trick.
    I will submit the bug report as well.
    You saved me lots of time on this.

    never submitted a bug before so i attached your change which works
    Last edited by datatoo; 2011-04-22 at 05:11 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Edit notes in note summary window?
    By lijunxiong in forum Developer Help
    Replies: 0
    Last Post: 2009-07-27, 02:50 PM
  2. Replies: 1
    Last Post: 2009-04-24, 03:36 PM
  3. Help with Histoy's----->view summary
    By rennisha29 in forum Help
    Replies: 1
    Last Post: 2007-11-29, 06:32 PM
  4. Bug in View Summary?
    By echo4mic in forum Help
    Replies: 0
    Last Post: 2006-04-28, 12:07 AM
  5. Replies: 3
    Last Post: 2005-10-31, 08:31 PM

Tags for this Thread

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
  •