<div dir="ltr">Salim,<div><br></div><div>When you install a module you need to initiate Sharing access right also for that module. This will internally recalcuate</div><div>user privileges files. Have a look at initSharing API of Access.php file of vtlib.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 February 2014 02:52, Salim <span dir="ltr"><<a href="mailto:salimcmd@gmail.com" target="_blank">salimcmd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(68,68,68)">Hi,<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(68,68,68)"> Did anyone tried to Install extension module?, When i installed a module, It can access an User with Admin privilege, But not any other user. When i added the Module Tabid in <i>$profileTabsPermission</i> Array in User_Privilege file then that user can access that Module.<br>
</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(68,68,68)"> What will be the Issue?. The User_Privilege file Suppose to update when the new module installation time.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(68,68,68)">
Is there any way that we can update User_Privilege file manually?. Or any Fix?<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(68,68,68)"><u>Error</u><br><img alt="Inline images 1" src="cid:ii_1440911b5a984b6b" height="142" width="485"><br>
</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(68,68,68)"><u>The Setup Script That I used</u><br><br><ol style="margin:0px;padding:0px 0px 0px 48px;color:rgb(172,172,172);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:21px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(248,248,248)">
<li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span style="color:rgb(0,0,0);font-weight:bold"><?php</span></div></li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span style="color:rgb(0,0,136)">$Vtiger_Utils_Log</span><span> </span><span style="color:rgb(51,153,51)">=</span><span> </span><span style="color:rgb(0,153,0);font-weight:bold">true</span><span style="color:rgb(51,153,51)">;</span></div>
</li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
</div></li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span style="color:rgb(177,177,0)">include_once</span><span> </span><span style="color:rgb(0,0,255)">'vtlib/Vtiger/Module.php'</span><span style="color:rgb(51,153,51)">;</span></div>
</li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span style="color:rgb(0,0,136)">$myExtensionModule</span><span> </span><span style="color:rgb(51,153,51)">=</span><span> </span>Vtiger_Module<span style="color:rgb(51,153,51)">::</span><span style="color:rgb(0,64,0)">getInstance</span><span style="color:rgb(0,153,0)">(</span><span style="color:rgb(0,0,255)">'CustomReports'</span><span style="color:rgb(0,153,0)">)</span><span style="color:rgb(51,153,51)">;</span></div>
</li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span style="color:rgb(177,177,0)">if</span><span> </span><span style="color:rgb(0,153,0)">(</span><span style="color:rgb(0,0,136)">$myExtensionModule</span><span style="color:rgb(0,153,0)">)</span><span> </span><span style="color:rgb(0,153,0)">{</span></div>
</li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
Vtiger_Utils<span style="color:rgb(51,153,51)">::</span><span style="color:rgb(153,0,0)">Log</span><span style="color:rgb(0,153,0)">(</span><span style="color:rgb(0,0,255)">"Module 'CustomReports' already exits."</span><span style="color:rgb(0,153,0)">)</span><span style="color:rgb(51,153,51)">;</span></div>
</li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span style="color:rgb(0,153,0)">}</span><span> </span><span style="color:rgb(177,177,0)">else</span><span> </span><span style="color:rgb(0,153,0)">{</span></div></li><li>
<div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span> </span><span style="color:rgb(0,0,136)">$myExtensionModule</span><span> </span><span style="color:rgb(51,153,51)">=</span><span> </span><span style="color:rgb(0,0,0);font-weight:bold">new</span><span> </span>Vtiger_Module<span style="color:rgb(0,153,0)">(</span><span style="color:rgb(0,153,0)">)</span><span style="color:rgb(51,153,51)">;</span></div>
</li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span> </span><span style="color:rgb(0,0,136)">$myExtensionModule</span><span style="color:rgb(51,153,51)">-></span><span style="color:rgb(0,64,0)">name</span><span> </span><span style="color:rgb(51,153,51)">=</span><span> </span><span style="color:rgb(0,0,255)">'CustomReports'</span><span style="color:rgb(51,153,51)">;</span></div>
</li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span> </span><span style="color:rgb(0,0,136)">$myExtensionModule</span><span style="color:rgb(51,153,51)">-></span><span style="color:rgb(0,64,0)">label</span><span style="color:rgb(51,153,51)">=</span><span> </span><span style="color:rgb(0,0,255)">'CustomReports'</span><span style="color:rgb(51,153,51)">;</span></div>
</li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span> </span><span style="color:rgb(0,0,136)">$myExtensionModule</span><span style="color:rgb(51,153,51)">-></span><span style="color:rgb(0,64,0)">parent</span><span style="color:rgb(51,153,51)">=</span><span style="color:rgb(0,0,255)">'Analytics'</span><span style="color:rgb(51,153,51)">;</span></div>
</li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span> </span><span style="color:rgb(0,0,136)">$myExtensionModule</span><span style="color:rgb(51,153,51)">-></span><span style="color:rgb(0,64,0)">save</span><span style="color:rgb(0,153,0)">(</span><span style="color:rgb(0,153,0)">)</span><span style="color:rgb(51,153,51)">;</span></div>
</li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span style="color:rgb(0,153,0)">}</span></div></li><li><div style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left:1px solid rgb(204,204,204);background-color:rgb(255,255,255);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;line-height:21px">
<span style="color:rgb(0,0,0);font-weight:bold">?></span></div></li></ol><br clear="all"></div><br><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(68,68,68);display:inline">Thanks</div><span class="HOEnZb"><font color="#888888">
<br>-- <br><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(68,68,68);display:inline">Salim<br>
</div></font></span></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards<br>Vikas<br>Vtiger Team
</div>