forked from extern/egroupware
SelectAccount with type "none" should get sel_options but it should be readonly if user has no admin access. Fix infolog delegation for admin users with selectAccount type "none" selected
This commit is contained in:
parent
3fb93c33a6
commit
80cd11972a
@ -199,8 +199,10 @@ class etemplate_widget_menupopup extends etemplate_widget
|
||||
{
|
||||
// Check selection preference, we may be able to skip reading some data
|
||||
$select_pref = $GLOBALS['egw_info']['user']['preferences']['common']['account_selection'];
|
||||
if($this->attrs['type'] == 'select-account' && !$GLOBALS['egw_info']['apps']['admin'] && $select_pref == 'none')
|
||||
if($this->attrs['type'] == 'select-account' && !$GLOBALS['egw_info']['user']['apps']['admin'] && $select_pref == 'none')
|
||||
{
|
||||
self::$request->preserv[$this->id] = self::$request->content[$this->id];
|
||||
unset(self::$request->content[$this->id]);
|
||||
$this->attrs['readonly'] = true;
|
||||
}
|
||||
|
||||
|
@ -111,7 +111,6 @@ var et2_selectAccount = et2_selectbox.extend(
|
||||
switch(type)
|
||||
{
|
||||
case 'none':
|
||||
break;
|
||||
case 'selectbox':
|
||||
case 'groupmembers':
|
||||
default:
|
||||
|
@ -2060,8 +2060,6 @@ class infolog_ui
|
||||
{
|
||||
$readonlys['tabs']['project'] = true; // disable the project tab
|
||||
}
|
||||
$readonlys['tabs']['delegation'] = $GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] == 'none' &&
|
||||
!isset($GLOBALS['egw_info']['user']['apps']['admin']);
|
||||
|
||||
$content['duration_format'] = $this->duration_format;
|
||||
$content['hours_per_workday'] = $this->hours_per_workday;
|
||||
|
Loading…
Reference in New Issue
Block a user