[Vtigercrm-commits] [vtiger-commits] r7295 - /vtigercrm/trunk/modules/Users/DefaultDataPopulator.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 20 08:32:48 EDT 2006
Author: richie
Date: Tue Jun 20 06:32:30 2006
New Revision: 7295
Log:
added proper default roles
Modified:
vtigercrm/trunk/modules/Users/DefaultDataPopulator.php
Modified: vtigercrm/trunk/modules/Users/DefaultDataPopulator.php
==============================================================================
--- vtigercrm/trunk/modules/Users/DefaultDataPopulator.php (original)
+++ vtigercrm/trunk/modules/Users/DefaultDataPopulator.php Tue Jun 20 06:32:30 2006
@@ -31,6 +31,8 @@
$role1_id = $this->db->getUniqueID("role");
$role2_id = $this->db->getUniqueID("role");
$role3_id = $this->db->getUniqueID("role");
+ $role4_id = $this->db->getUniqueID("role");
+ $role5_id = $this->db->getUniqueID("role");
$profile1_id = $this->db->getUniqueID("profile");
$profile2_id = $this->db->getUniqueID("profile");
@@ -38,8 +40,10 @@
$profile4_id = $this->db->getUniqueID("profile");
$this->db->query("insert into vtiger_role values('H".$role1_id."','Organisation','H".$role1_id."',0)");
- $this->db->query("insert into vtiger_role values('H".$role2_id."','administrator','H".$role1_id."::H".$role2_id."',1)");
- $this->db->query("insert into vtiger_role values('H".$role3_id."','standard_user','H".$role1_id."::H".$role2_id."::H".$role3_id."',2)");
+ $this->db->query("insert into vtiger_role values('H".$role2_id."','CEO','H".$role1_id."::H".$role2_id."',1)");
+ $this->db->query("insert into vtiger_role values('H".$role3_id."','Vice President','H".$role1_id."::H".$role2_id."::H".$role3_id."',2)");
+ $this->db->query("insert into vtiger_role values('H".$role4_id."','Sales Manager','H".$role1_id."::H".$role2_id."::H".$role3_id."::H".$role4_id."',3)");
+ $this->db->query("insert into vtiger_role values('H".$role5_id."','Sales Man','H".$role1_id."::H".$role2_id."::H".$role3_id."::H".$role4_id."::H".$role5_id."',4)");
$this->db->query("INSERT INTO vtiger_tab VALUES (3,'Home',0,1,'Home',null,null,1)");
More information about the vtigercrm-commits
mailing list