[Vtigercrm-developers] Option to recalculate sharing access from SQL?

Adam Heinz amh at metricwise.net
Tue Sep 18 05:38:55 PDT 2012


Well, that's likely the source of your 500 error!  Look at the array
value for entry '51' -- it's missing!  I've seen recalculate
privileges do that before, at least a year ago.  I want to say that it
happens when you generate privileges for a user that doesn't have any
role -> profile -> tab mapping for a module at all.

On Tue, Sep 18, 2012 at 6:52 AM, Matteo Baranzoni <barra at greenbitweb.com> wrote:
> Hy Adam,
> I try but it give me this error:
>
> Parse error: syntax error, unexpected ',' in
> /home/xxx/public_html/xxx/user_privileges/sharing_privileges_820.php on line
> 5
> Line5 is:
>
> $defaultOrgSharingPermission=array('2'=>2,'4'=>2,'6'=>2,'7'=>2,'9'=>3,'13'=>3,'16'=>3,'20'=>2,'21'=>2,'22'=>2,'23'=>2,'26'=>2,'8'=>2,'30'=>2,'31'=>3,'35'=>2,'36'=>2,'37'=>2,'38'=>2,'40'=>2,'45'=>2,'46'=>,'47'=>2,'50'=>2,'51'=>,'52'=>2,'53'=>2,);
>
>
>
> 2012/9/13 Adam Heinz <amh at metricwise.net>
>>
>> On Thu, Sep 13, 2012 at 8:29 AM, Marian Banica <marian at webio.ro> wrote:
>> > I have an instance where i get error 500 when i try to recalculate
>> > sharing
>> > access rights for users. I get access to the database but no access to
>> > setup
>> > Apache, PHP or MySQL limits.
>> > There is any option to run any SQL command to do the same?
>>
>> >From the command line
>>
>> cd <docroot>
>> php -r "require_once 'include/utils/UserInfoUtil.php';
>> RecalculateSharingRules();"
>> _______________________________________________
>> http://www.vtiger.com/
>
>
>
>
> --
> Matteo Baranzoni - Greenbit WEB
>
> :: Avvertenze Legali ::
> Questa email, e ogni eventuale allegato, è a uso esclusivo della Persona o
> della Società/Ente a cui è indirizzato e potrebbe contenere informazioni
> riservate. Se avete ricevuto questa email per errore, ci scusiamo per
> l'accaduto e Vi preghiamo cortesemente di darcene sollecita comunicazione e
> a cancellare l'email e ogni eventuale allegato. Vi ricordiamo che
> l'utilizzo, la conservazione, la distribuzione e/o la diffusione dei dati
> ricevuti per errore costituiscono violazioni alle disposizioni del D.Lgs.
> 196/03 (Codice della Privacy).
> This e-mail, and any attachment, is for the intended recipient only and is
> confidential. If this e-mail has been misdirected, please let the sender
> know and delete it with any attachment, thanks. Any disclosure, copying,
> distribution is prohibited
>
>
>
> _______________________________________________
> http://www.vtiger.com/



More information about the vtigercrm-developers mailing list