[Vtigercrm-developers] Accessible Groups List
apcloic
apcloic at gmail.com
Thu Jan 8 13:35:12 GMT 2015
Hi All,
I'm trying to find a workaround for the following privilege issue : user are
able to assign to all groups regardless if they are member or not.
This is very problematic for me, I only want to see strict user's group(s)
they are member of in picklist "assigned to" field and not all groups !
So basically I've started by studying
layouts/vlayout/modules/Vtiger/uitypes/Owner.tpl in which var
ALL_ACTIVEGROUP_LIST leads to $USER_MODEL->getAccessibleGroups().
In /modules/Users/models/Record.php I found getAccessibleGroups() function
which leads to get_group_array function.
I found get_group_array function in /include/utils/utils.php which return
the value of $group_array
So for testing purpose, I'm playing with this function by forcing
$group_array to return a single group instead of all groups, so the output
of this variable is now :
Array (
[6] => TEST
)
Instead of the following :
Array
(
[3] => Marketing Group
[4] => Support Group
[2] => Team Selling
[6] => TEST
)
However, this change has no effect on assigned to picklist which contains
all the 4 groups.
Clearing browser & vtiger cache does not help.
Any reason why ?
Another question regarding the same problem :
in /user_privileges/user_privileges_5.php I found the following variable :
$current_user_groups=array(6,2,3,4,);
However, this user (ID=5) is only member of TEST group (ID=6), so why does
the array contains all existing groups at the time of user account creation
?
AFAIK "Current User Groups" means groups that user is member of, isn't it ?
Regards,
--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/Accessible-Groups-List-tp14849.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.
More information about the vtigercrm-developers
mailing list