Results 1 to 9 of 9

Thread: how to disable menu bar for certain users

  1. #1
    veronicakatz is offline Senior Member
    Join Date
    Sep 2008
    Location
    Madrid - Spain
    Posts
    71

    Default how to disable menu bar for certain users

    Hi, everybody.
    I'm using 5.1.0CE in order to let our customers (external users) to enter bugs and let us (call center) know their questions and problems.
    Of course I configured their users and roles, and I don't want them to edit neither their preferences nor know who we are.
    The role they belong to is properly configured, and they can only see 2 tabs: the Home one, and another specially created for them.
    When they log in, they see the upper menu bar which says:

    Welcome, xxxx [logout] | My Account | Employees | Training | About

    How can I disable these options but the "logout" one? I don't want them to edit their configuration, and they dont' need to know our employees, nor anything else...

    Thanks in advance
    Verónica

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: how to disable menu bar for certain users

    Hi Verônica

    The array containing these links are generated into include/globalControlLinks.php and used into themes/<ThemeName>/header.php

    You can override the theme you are using removing the entries array.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    veronicakatz is offline Senior Member
    Join Date
    Sep 2008
    Location
    Madrid - Spain
    Posts
    71

    Default Re: how to disable menu bar for certain users

    Hi, André, thanks for your response.
    Before doing anything, I wonder if this is a global workaround or valid for certain users.
    I want this to be valid ONLY for certain users (or certain roles).
    May I edit the file you are saying??
    Verónica

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: how to disable menu bar for certain users

    Hi Verônica

    Both files are from SugarCRM core, so changes on them are not upgrade safe.
    You can modify the first one, where the array is defined.
    Just create an if c condition to render the tabs for the allowed users.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    veronicakatz is offline Senior Member
    Join Date
    Sep 2008
    Location
    Madrid - Spain
    Posts
    71

    Default Re: how to disable menu bar for certain users

    ok, André, then I'll have to think if it's worthwhile to edit the files considering it's not upgrade safe.
    I will do a couple of tests, and then I will let you know the results.
    Thanks a lot for your response.
    Verónica

  6. #6
    rterwedo is offline Junior Member
    Join Date
    Dec 2008
    Posts
    1

    Default Re: how to disable menu bar for certain users

    Can you post a code sample? I am testing things and need to do exactly this... however my coding days are a bit old =) I am using 5.0.0b and would like to do it for select user groups, ie user group "Client" cannot see the menus except logout.

    I was able to do it for all users other then admin (due to the function included in the above file) but do not have a function to verify a user group.

    Thanks!
    Last edited by rterwedo; 2008-12-09 at 02:06 AM.

  7. #7
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: how to disable menu bar for certain users

    Quote Originally Posted by rterwedo View Post
    Can you post a code sample? I am testing things and need to do exactly this... however my coding days are a bit old =) I am using 5.0.0b and would like to do it for select user groups, ie user group "Client" cannot see the menus except logout.

    I was able to do it for all users other then admin (due to the function included in the above file) but do not have a function to verify a user group.

    Thanks!
    The array containing these links are generated into include/globalControlLinks.php and used into themes/<ThemeName>/header.php

    You can override the theme you are using removing the entries array.

    It is easy to understand, just take a look.

    Regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  8. #8
    mmajzoub is offline Junior Member
    Join Date
    Mar 2007
    Posts
    4

    Default Re: how to disable menu bar for certain users

    A similar question to the above string.

    We are trying to do something similar is there a way we can disable login? we want external customer to enter Cases into sugar directly. But we do not want to give each external user a userid? I want to be able to give them access to the Quick Create Case only to enter their data.

    Any help will be appreciated. And best wishes for a great New Year!

  9. #9
    hubcrm is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Surrey - UK
    Posts
    90

    Default Re: how to disable menu bar for certain users

    could you not just setup a role and hide certain modules in the role permissions for the external user.....

    personally I think it's a flawed approach to give people direct access to your CRM environment like that. I'd be having a look at the great portal product that Andre and the team at Lampada are putting together. It's a generically better approach. I don't think it does bugs yet. It does cases though.

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: 2008-05-29, 11:51 AM
  2. Sugar 5.0.0 / Sugar Forums 5.0.0 Extension Query Errors
    By benk in forum Installation and Upgrade Help
    Replies: 4
    Last Post: 2008-05-13, 03:44 PM
  3. Replies: 4
    Last Post: 2007-01-03, 11:11 AM
  4. Disable tabs for certain users
    By anthonyt in forum Feature Requests
    Replies: 5
    Last Post: 2006-05-06, 02:01 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
  •