Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Hide employee information for non-admins

Hide employee information for non-admins 3 years 8 months ago #17840

  • Lagunajack
  • Lagunajack's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Thank you received: 6
  • Karma: 1
Hi

We want to hide employee information for non-admins
1. Hide Employees tab for non-admins
2. Hide "Assigned to" box in Advanced Search for Leads, Contact , etc from non-admins (Is it possible in Roles to prevent non-admins from viewing?)
3. Hide "Assigned to" box in Leads, Contact , etc page from non-admins (Is it possible in Roles to prevent non-admins from viewing?)

Thank you in advance for feedback.

Regards,
Jack Powers
The administrator has disabled public write access.

Hide employee information for non-admins -Solved 2 years 10 months ago #29263

  • Lagunajack
  • Lagunajack's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Thank you received: 6
  • Karma: 1
Update; Hide employee information for non-admins is Solved
1. Open include/globalControlLinks.php
2. In the file go to:
}


$global_control_links = array(
'linkinfo' => array($app_strings=> 'index.php?module=Employees&action=index&query=true'),
'submenu' => ''
);
3. add the following line
if (is_admin ($current_user))
4. The code will look like code below
}

if (is_admin ($current_user))
$global_control_links = array(
'linkinfo' => array($app_strings=> 'index.php?module=Employees&action=index&query=true'),
'submenu' => ''
);
5. Non-admins will not be able to view employees
[/size][/size][/size]
The administrator has disabled public write access.
The following user(s) said Thank You: jrivas, toneywu

Hide employee information for non-admins -Solved 2 years 1 month ago #41837

  • shwetaD
  • shwetaD's Avatar
  • Offline
  • Junior Member
  • Posts: 28
  • Karma: 0
hi,
I need the same requirement.
but when I did the above change in include/globalControlLinks.php there is no effect on my site.
Whay this is not reflact to my suitecrm site?
Last Edit: 2 years 1 month ago by shwetaD.
The administrator has disabled public write access.

Hide employee information for non-admins -Solved 1 month 1 week ago #75313

  • jrivas
  • jrivas's Avatar
  • Offline
  • Premium Member
  • Posts: 83
  • Thank you received: 1
  • Karma: 0
Hi,

it works for me.

in Suitecrm 7.10.7

if (is_admin ($current_user))
$global_control_links = array(
'linkinfo' => array($app_strings=> 'index.php?module=Employees&action=index&query=true'),
'submenu' => ''

Thank you. @Lagunajack
Javer Rivas
www.esatic.com
Skype: javer.rivas
5713132774176
The administrator has disabled public write access.
Time to create page: 0.119 seconds
Powered by Kunena Forum