[Vtigercrm-developers] Record restriction based on reports_to field.

salim salimcmd at gmail.com
Mon Apr 29 15:47:48 UTC 2013


Adam, Thanks for your reply. I will look at it and let you know how it goes.




Thanks
--
Salim



On 29 April 2013 19:35, Adam Heinz <amh at metricwise.net> wrote:

> That is a great idea, but not currently possible; I see no relevant code
> in isPermitted [1].  If you don't mind writing some code, I think you could
> set up something similar to how subordinate users are checked [2].  As far
> as current configuration options go, the closest thing I can think of would
> be to create two groups for each manager, i.e. Group::Bob and
> Group::Reports_to_Bob and set up sharing access rules.  Unfortunately, this
> is redundant with reports_to and you will get drift.
>
> [1]
> http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/6.0.0/include/utils/UserInfoUtil.php#L745
> [2]
> http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/6.0.0/include/utils/UserInfoUtil.php#L890
>
>
> On Mon, Apr 29, 2013 at 6:20 AM, salim <salimcmd at gmail.com> wrote:
>
>> Hi Team.
>>
>>     Is there anyway to restrict records based on *reports_to* field. The
>> role structure :- *roleA *under that there is another role called *roleB.
>>  *And User :- *UserA1* and *UserA2*. Both of user using *RoleA.  *There
>> is two more users *UserB1* And *UserB2*. The *UserB1* is *reports_to *field set
>> to  *UserA1 *and* **UserB2* is *reports_to *field* *set to  *UserA2*.
>> and both of them using *RoleB.*
>>
>>     When a user log in to Application he/she can only access the
>>  records that reports to that user. Example *UserA1 * he can only access
>> the records that created by *UserB1. *
>> I think In current implantation of vTiger, *UserA2 * can see the* *records
>> that created by *UserB1 *even if i set to reports_to field *UserA1*
>>
>>
>> *Roles*
>> --------
>> roleA
>>       roleB
>>
>> *User*
>> -----
>> UserA1 using role RoleA
>>       UserB1 using role roleB and reports_to filed set to UserA1
>> UserA2 using role RoleA
>>       UserB2 using role roleB and reports_to filed set to UserA2
>>
>>
>> Thanks
>> --
>> Salim
>>
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
Muhammed Abdul Salim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130429/eea94719/attachment.html>


More information about the vtigercrm-developers mailing list