Hummm I see. I don't use sharing rules, so I didn't know that you had to do this every time you create a user. Maybe that could be handled just for the new user as you create it, instead of changing the whole system, what do you think? Create a recalculation just for that user, and trigger it after the user creation would solve the problem (and would be waaay easier to you).<br>
<br>In fact I asked because I'm particulary annoyed with the way that Vtiger handles permissions. I know that this must be some Sugar remain, but, anytime, people will have to think about it. Wouldn't it be easier if instead of files, we had tables to store the privileges? And, as soon as the user logs into the system, we could store the privileges into the user's session. Going a little further, we could create some engine to keep the user privileges allways up to date (that would be the fun part I guess), cause it's reallly annoying keep asking to the user to log out and log back in every time we create a group or something like that.<br>
<br>This could be a great issue to discuss. What you guys think?<br><br>Cheers<br><br>Nicolas<br><br><div class="gmail_quote">2012/1/27 Adam Heinz <span dir="ltr"><<a href="mailto:amh@metricwise.net">amh@metricwise.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div class="im">On Fri, Jan 27, 2012 at 12:48 PM, Nicolas Larcipretti <span dir="ltr"><<a href="mailto:niclarcipretti@gmail.com" target="_blank">niclarcipretti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can I ask you why are you recalculating user sharing privileges after insert a new user?<br><br></blockquote><div><br></div></div><div>I have a sharing rule that says</div><div><br></div><div>Appointments of Role::Sales can be accessed by Role::Reception with privileges Read/Write.</div>
<div><br></div><div>If I add a new sales rep, I need to recalculate privileges for reception users, or they won't have the ability to schedule appointments for the new sales rep.</div><div><br></div></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>