mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Now checks to make sure the groups _lid is not blank when changing the _lid. Also, added calls to sessions->delete_cache() so the users cache can be re-built upon next activity.
This commit is contained in:
parent
38684d2cf6
commit
a039cec5bd
@ -350,7 +350,7 @@
|
|||||||
$temp_users = ($GLOBALS['HTTP_POST_VARS']['account_user']?$GLOBALS['HTTP_POST_VARS']['account_user']:Array());
|
$temp_users = ($GLOBALS['HTTP_POST_VARS']['account_user']?$GLOBALS['HTTP_POST_VARS']['account_user']:Array());
|
||||||
$account_user = Array();
|
$account_user = Array();
|
||||||
@reset($temp_users);
|
@reset($temp_users);
|
||||||
while(list($key,$user_id) = each($temp_users))
|
while($temp_users && list($key,$user_id) = each($temp_users))
|
||||||
{
|
{
|
||||||
$account_user[$user_id] = ' selected';
|
$account_user[$user_id] = ' selected';
|
||||||
}
|
}
|
||||||
@ -414,7 +414,7 @@
|
|||||||
$apps->save_repository();
|
$apps->save_repository();
|
||||||
|
|
||||||
// Set new account_lid, if needed
|
// Set new account_lid, if needed
|
||||||
if($old_group_info['account_lid'] <> $group_info['account_name'])
|
if($group_info['account_name'] && $old_group_info['account_lid'] <> $group_info['account_name'])
|
||||||
{
|
{
|
||||||
$group->data['account_lid'] = $group_info['account_name'];
|
$group->data['account_lid'] = $group_info['account_name'];
|
||||||
|
|
||||||
@ -447,6 +447,7 @@
|
|||||||
$GLOBALS['phpgw']->db->query("update phpgw_sessions set session_action='' "
|
$GLOBALS['phpgw']->db->query("update phpgw_sessions set session_action='' "
|
||||||
."where session_lid='" . $GLOBALS['phpgw']->accounts->id2name($user_id)
|
."where session_lid='" . $GLOBALS['phpgw']->accounts->id2name($user_id)
|
||||||
. '@' . $GLOBALS['phpgw_info']['user']['domain'] . "'",__LINE__,__FILE__);
|
. '@' . $GLOBALS['phpgw_info']['user']['domain'] . "'",__LINE__,__FILE__);
|
||||||
|
$GLOBALS['phpgw']->session->delete_cache($user_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -467,6 +468,8 @@
|
|||||||
."where session_lid='" . $GLOBALS['phpgw']->accounts->id2name($user_id)
|
."where session_lid='" . $GLOBALS['phpgw']->accounts->id2name($user_id)
|
||||||
. '@' . $GLOBALS['phpgw_info']['user']['domain'] . "'",__LINE__,__FILE__);
|
. '@' . $GLOBALS['phpgw_info']['user']['domain'] . "'",__LINE__,__FILE__);
|
||||||
|
|
||||||
|
$GLOBALS['phpgw']->session->delete_cache($user_id);
|
||||||
|
|
||||||
// The following sets any default preferences needed for new applications..
|
// The following sets any default preferences needed for new applications..
|
||||||
// This is smart enough to know if previous preferences were selected, use them.
|
// This is smart enough to know if previous preferences were selected, use them.
|
||||||
$docommit = False;
|
$docommit = False;
|
||||||
|
Loading…
Reference in New Issue
Block a user