[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtigercrm-developers
Subject:    Re: [Vtigercrm-developers] Option to recalculate sharing access from SQL?
From:       Adam Heinz <amh () metricwise ! net>
Date:       2012-09-18 12:38:55
Message-ID: CAKBdvM99k3HkaikW4H5VDjmseVzM9ATHA3Pp+qqjwp+g7zjX4Q () mail ! gmail ! com
[Download RAW message or body]

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@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@metricwise.net>
> > 
> > On Thu, Sep 13, 2012 at 8:29 AM, Marian Banica <marian@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/

_______________________________________________
http://www.vtiger.com/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic