Results 1 to 7 of 7

Thread: Need Help to delete Edit button for Normal users in detail View of Notes in Sugar Pro

  1. #1
    shivaranjani is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    174

    Question Need Help to delete Edit button for Normal users in detail View of Notes in Sugar Pro

    Hello,

    Need Help to delete Edit button for Normal users in detail View of Notes in Sugarcrm Profesional version 5.5.1
    OS : Windows and Linux
    PHP: 5.2
    Apache 2.2
    Mysql: 5.2

    Thanks,
    Shivaranjani

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

    Default Re: Need Help to delete Edit button for Normal users in detail View of Notes in Sugar

    You could change this code

    PHP Code:
       case "EDIT";
       return 
    '{if $bean->aclAccess("edit")}<input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="button" onclick="this.form.return_module.value=\'' $module '\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$id}\'; this.form.action.value=\'' $view '\';" type="submit" name="Edit" id="edit_button" value="{$APP.LBL_EDIT_BUTTON_LABEL}">{/if} ';
       break; 
    in include/Smarty/plugins/function.sugar_button.php
    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


  3. #3
    shivaranjani is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    174

    Question Re: Need Help to delete Edit button for Normal users in detail View of Notes in Sugar

    Hello Kuske,
    Thank you for your reply. I tried that but it did not work. Any other clues kindly let me know.

    Regards,
    ShivaRanjani

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

    Default Re: Need Help to delete Edit button for Normal users in detail View of Notes in Sugar

    Then you did something wrong.
    In my environment this method worked fine, always.
    Try it again.
    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


  5. #5
    Join Date
    Feb 2007
    Location
    San Jose, CA
    Posts
    1,169

    Default Re: Need Help to delete Edit button for Normal users in detail View of Notes in Sugar

    What about just creating a role that disables the Edit privilege? Go to Admin, Roles and create a role that restricts Edit, then assign your users to that role.
    Susie Williams

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

    Default Re: Need Help to delete Edit button for Normal users in detail View of Notes in Sugar

    Thank you Susie, that could be really the best solution.

    But perhaps ShivaRanjani has the same problem I had before.
    I needed the right to create a bean but not to edit it.
    E.g. it must be possible for a sales rep. to write a note, but not to change it.
    A role "create" would be the solution and I think this could be very helpful.

    Greetings
    Harald
    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


  7. #7
    shivaranjani is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    174

    Question Re: Need Help to delete Edit button for Normal users in detail View of Notes in Sugar

    Thank you for all,
    But It did not work for me.I am using sugarpro5.5.1.Thank you once again for your support.

    Regards,
    ShivaRanjani

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2010-03-13, 04:58 PM
  2. Have to disable Edit button in Detail View of Cases module
    By naveenshurpalekar in forum Developer Help
    Replies: 5
    Last Post: 2009-11-19, 12:36 PM
  3. Replies: 1
    Last Post: 2009-09-21, 09:47 PM
  4. Adding a custom button to top of Detail view in Sugar 5
    By mipapage in forum Developer Help
    Replies: 10
    Last Post: 2007-12-19, 08:37 AM
  5. Replies: 13
    Last Post: 2007-10-04, 05:53 AM

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
  •