[Vtigercrm-developers] vTigerCRM 6 GA Extension Module Permission Issue

Salim salimcmd at gmail.com
Thu Feb 6 21:22:58 GMT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140207/b485801e/attachment-0001.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/b485801e/attachment-0001.png>


More information about the vtigercrm-developers mailing list