mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
changes on the user/personal prefs of the admin should have imidate effect
This commit is contained in:
parent
6b1cfa855e
commit
1174106632
@ -347,9 +347,16 @@
|
||||
$GLOBALS['phpgw']->redirect_link('/preferences/index.php');
|
||||
}
|
||||
|
||||
if ($GLOBALS['type'] == 'user' && $_GET['appname'] == 'preferences' && $user['show_help'] != '')
|
||||
if ($GLOBALS['type'] == 'user' && $_GET['appname'] == 'preferences') // changes for the admin itself
|
||||
{
|
||||
$show_help = $user['show_help']; // use it, if admin changes his help-prefs
|
||||
if ($user['show_help'] != '')
|
||||
{
|
||||
$show_help = $user['show_help']; // use it, if admin changes his help-prefs
|
||||
}
|
||||
if ($GLOBALS['phpgw_info']['user']['preferences']['common']['lang'] != $user['lang'])
|
||||
{
|
||||
$GLOBALS['phpgw']->redirect_link('/preferences/preferences.php','appname='.$_GET['appname']);
|
||||
}
|
||||
}
|
||||
}
|
||||
$GLOBALS['phpgw']->session->appsession('session_data','preferences',array(
|
||||
|
Loading…
Reference in New Issue
Block a user