• Page:
  • 1

How to allow all users to view every other users leads in uKnowva CRM

ONLINE

How to allow all users to view every other users leads in uKnowva CRM

5 months, 1 week ago
This is a dirty trick, involves core code modification of component com_lms, but a few people want this. So, adding the trick here. I wish if someone can just make a config parameter saying usergroups that should have all view access, and the system shud work accordingly

Open the file components/com_leads/models/leads.php and replace the below code in getListQuery()
if(in_array(7,$groupsUserIsIn) || in_array(8,$groupsUserIsIn) || in_array(9,$groupsUserIsIn))
//replace above with
if(true)//did by vicky to show leads to everyone as requested in ticket#415914   in_array(7,$groupsUserIsIn) || in_array(8,$groupsUserIsIn) || in_array(9,$groupsUserIsIn))


and the file components/com_leads/helpers/leads.php and replace the below code in getLeadAccess()
if(in_array(7,$groupsUserIsIn) || in_array(8,$groupsUserIsIn))
//replace above with
if(true)//did by vicky to show leads to everyone as requested in ticket#415914   in_array(7,$groupsUserIsIn) || in_array(8,$groupsUserIsIn))


thanks
The following user(s) said Thank You: Krunal Nanda, Rajat Pal, Manali Dalvi
OFFLINE

Re: How to allow all users to view every other users leads in uKnowva CRM

5 months, 1 week ago
Why dont we make a parameter that switches between True and False, and append it via OR clause

if(in_array(7,$groupsUserIsIn) || in_array(8,$groupsUserIsIn) || $param->get('allow_all_users',false))


If param returns true, it will always pass through the OR clause, default False

Or something for user groups
Last Edit: 5 months, 1 week ago by Krunal Nanda.
The following user(s) said Thank You: Vicky Jain
  • Page:
  • 1

Upcoming Events

Who's Online