Results 1 to 3 of 3

Thread: Hiding functions using “Roles” not working properly?

  1. #1
    ed.win is offline Junior Member
    Join Date
    Jan 2011
    Location
    Earth
    Posts
    2

    Default Hiding functions using “Roles” not working properly?

    Maybe I’m just missing something here but...

    I created roles to limit certain users’ access to certain functions like Scheduling Meetings, etc. It seems like it’s working fine. For example, for a certain role, I set ‘Meetings’ (in Admin → Role Management) like the following:


    • Access: Disabled
    • Delete: None
    • Edit: None
    • Export: None
    • Import: None
    • List: None
    • View: None


    Sure enough, when I logged in as the user assigned to that particular role, I can’t access Schedule Meeting, View Meetings, etc. inside the Activities tab anymore. The same is true under Sitemap → Activities.

    BUT, when I go to Accounts then click on an Account Name, under Activities, I can still see Schedule Meeting! (I know when you try using it, an error message will appear telling you that, “You do not have access to this area. Contact your site administrator to obtain access.”)

    Is that the expected behavior? It makes more sense to completely hide inaccesible functions, so, is there a way to do it without changing a line of code?

    Thanks in advance for any help.

    Sugar Community Edition 6.1 on LAMP (CentOS 5.5, Apache 2.2.3, MySQL 5.1.54, PHP 5.3.5)

  2. #2
    blak3r's Avatar
    blak3r is offline Sugar Community Member
    Join Date
    Sep 2010
    Location
    Maryland
    Posts
    240

    Default Re: Hiding functions using “Roles” not working properly?

    I believe so... I don't think role settings play into rendering the buttons or not.
    Sugar 6 Pro, On-Site (Apache 2.0, MySQL 5.1, PHP 5.2.6)

    My SugarForge Projects:
    Email To Sugar - Archive emails in any mail client by adding a BCC line.
    Task Dashlets Plus- Adds custom dashlets for: tasks assigned to me by others, delegated tasks, overdue tasks, and open tasks past start date

    www.blakerobertson.com

  3. #3
    ed.win is offline Junior Member
    Join Date
    Jan 2011
    Location
    Earth
    Posts
    2

    Default Re: Hiding functions using “Roles” not working properly?

    Quote Originally Posted by blak3r View Post
    I believe so... I don't think role settings play into rendering the buttons or not.
    Thanks for the reply.

    But, the role settings is where you can enable/disable functions for certain users. Besides, the function(s) were not accessible anymore in one place, right? Isn’t it strange (counter-intuitive) that the functions disappeared in one place but not in the other? Any reason why it should behave like that?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2009-12-11, 02:23 PM
  2. Hiding Panes in Detail view bases on User Roles
    By mailfrd in forum Developer Help
    Replies: 1
    Last Post: 2009-06-18, 11:05 PM
  3. Hiding module subpanels with roles
    By eli.lindner in forum Developer Help
    Replies: 1
    Last Post: 2007-11-30, 08:59 AM
  4. Replies: 0
    Last Post: 2005-04-15, 07:16 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
  •