Results 1 to 4 of 4

Thread: How can I set permission on the Convert Lead button?

  1. #1
    jspencer is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Orlando, Fl
    Posts
    85

    Default How can I set permission on the Convert Lead button?

    In my office we have decided to limit who can create new Accounts in order to control what goes into the CRM (to prevent duplicates, garbage, etc). We will allow them to create Leads and Contacts, but with the Account limitation I have a feeling the 'Convert Lead' button will probably confuse them. With this in mind, I would like to hide the button from users in the 'Sales Staff' group and only have it visible to users in the 'Sales Mangers' group.

    Anyone have any pointers on how I would go about this?
    -Jeff

    SugarCRM CE 5.0a - Ubuntu 6.04 - Apache 2 - PHP 5 - Mysql 5

  2. #2
    jspencer is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Orlando, Fl
    Posts
    85

    Default Re: How can I set permission on the Convert Lead button?

    Nobody has any ideas?
    -Jeff

    SugarCRM CE 5.0a - Ubuntu 6.04 - Apache 2 - PHP 5 - Mysql 5

  3. #3
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Red face Re: How can I set permission on the Convert Lead button?

    As to the exact coding you need someone better in PHP than me.

    My guess is you need the following:

    include Users
    read users i.e. who is the current user.
    Match them to the group to determine sales versus manager.
    add a if statement before the display of the button.

    You should be able to do this in 2 or more statements. Make sure to bracket the call to display the convert lead button.

    Hope someone can give you the code. Need those senior guys around!

    Hope this points you in the right direction. I'm hoping osmeone can figure out my logic hook issue as well!

    Good luck Paris

  4. #4
    jspencer is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Orlando, Fl
    Posts
    85

    Default Re: How can I set permission on the Convert Lead button?

    Thanks for the reply, it's a good start. I shouldn't have too much trouble adding the needed code, my real problem is I'm not familiar with the "design" or layout of the Sugar code and don't know WHERE I need to edit to make this happen.

    Can someone with better knowledge of the file structure give me any pointers on what files I would need to edit to do this?
    -Jeff

    SugarCRM CE 5.0a - Ubuntu 6.04 - Apache 2 - PHP 5 - Mysql 5

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 22
    Last Post: 2011-04-19, 02:26 PM
  2. Convert Lead
    By turboweb in forum Help
    Replies: 2
    Last Post: 2010-10-22, 03:45 PM
  3. Replies: 0
    Last Post: 2007-12-27, 09:51 PM
  4. From lead to order
    By george_bbch in forum Feature Requests
    Replies: 0
    Last Post: 2006-09-26, 02:02 PM
  5. Uninstalling a test module
    By ACMartin55 in forum Help
    Replies: 0
    Last Post: 2006-09-12, 08:13 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
  •