From a8b92096a29070669b0fb8fa465863a9fa7dbb06 Mon Sep 17 00:00:00 2001
From: satish <satish.dvnk@vtiger.com>
Date: Wed, 22 Feb 2017 12:11:42 +0530
Subject: [PATCH] Fixes #410 - Create module using vtlib in all Profiles the
 "Create" option is disabled by default.

---
 vtlib/Vtiger/Profile.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vtlib/Vtiger/Profile.php b/vtlib/Vtiger/Profile.php
index b0888d895..1389b54e2 100644
--- a/vtlib/Vtiger/Profile.php
+++ b/vtlib/Vtiger/Profile.php
@@ -52,7 +52,7 @@ class Vtiger_Profile {
             $sql = "INSERT INTO vtiger_profile2standardpermissions (profileid, tabid, Operation, permissions) 
                             SELECT ?, tabid, actionid, 0 
                     FROM vtiger_actionmapping, vtiger_tab 
-                            WHERE actionname IN ('Save', 'EditView', 'Delete', 'index', 'DetailView') AND isentitytype = 1"; 
+                            WHERE actionname IN ('Save', 'CreateView', 'EditView', 'Delete', 'index', 'DetailView') AND isentitytype = 1"; 
             $binds = array($this->id); 
             $adb->pquery($sql, $binds); 
 
-- 
GitLab