Files
ViciDialSVN/agc_2-X/trunk/extras/vtiger_user_file_504.patch
T
mattf 116c1fc8e7 Added Vtiger user synchronization
Added more options for the vtiger_search.php web form page
Added notification of time sync problems to vicidial.php
other bug fixes

git-svn-id: svn://192.168.202.10@1026 3d104415-ff17-0410-8863-d5cf3c621b8a
2009-01-02 19:29:25 +00:00

22 lines
911 B
Diff

--- ./include/utils/UserInfoUtil.php 2008-12-31 21:39:39.000000000 -0500
+++ ./include/utils/UserInfoUtil.php 2009-01-01 01:20:17.000000000 -0500
@@ -1175,6 +1175,18 @@
global $adb;
global $current_user;
global $seclog;
+ if (!file_exists('user_privileges/user_privileges_'.$current_user->id.'.php'))
+ {
+ $up = fopen('user_privileges/user_privileges_'.$current_user->id.'.php',"a");
+ fwrite($up, '<? $placeholder=0; ?>');
+ fclose($up);
+ }
+ if (!file_exists('user_privileges/sharing_privileges_'.$current_user->id.'.php'))
+ {
+ $sp = fopen('user_privileges/sharing_privileges_'.$current_user->id.'.php',"a");
+ fwrite($sp, '<? $placeholder=0; ?>');
+ fclose($sp);
+ }
require('user_privileges/user_privileges_'.$current_user->id.'.php');
require('user_privileges/sharing_privileges_'.$current_user->id.'.php');
$permission = "no";