[Vtigercrm-developers] vTigerCRM 6 GA Extension Module Permission Issue
Vikas Jain
vikas at vtiger.com
Fri Feb 7 05:31:53 GMT 2014
Salim,
When you install a module you need to initiate Sharing access right also
for that module. This will internally recalcuate
user privileges files. Have a look at initSharing API of Access.php file of
vtlib.
On 7 February 2014 02:52, Salim <salimcmd at gmail.com> wrote:
> Hi,
> 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 *$profileTabsPermission* Array in
> User_Privilege file then that user can access that Module.
> What will be the Issue?. The User_Privilege file Suppose to update
> when the new module installation time.
> Is there any way that we can update User_Privilege file manually?. Or
> any Fix?
>
> *Error*
> [image: Inline images 1]
> *The Setup Script That I used*
>
>
> 1. <?php
> 2. $Vtiger_Utils_Log = true;
> 3.
> 4. include_once 'vtlib/Vtiger/Module.php';
> 5. $myExtensionModule = Vtiger_Module::getInstance('CustomReports');
> 6. if ($myExtensionModule) {
> 7. Vtiger_Utils::Log("Module 'CustomReports' already exits.");
> 8. } else {
> 9. $myExtensionModule = new Vtiger_Module();
> 10. $myExtensionModule->name = 'CustomReports';
> 11. $myExtensionModule->label= 'CustomReports';
> 12. $myExtensionModule->parent='Analytics';
> 13. $myExtensionModule->save();
> 14. }
> 15. ?>
>
>
>
> Thanks
>
> --
> Salim
>
> _______________________________________________
> http://www.vtiger.com/
>
--
Regards
Vikas
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140207/31cf6591/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2014-02-07 02-49-08.png
Type: image/png
Size: 6400 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140207/31cf6591/attachment.png>
More information about the vtigercrm-developers
mailing list