Two new options for the account-selection:

- Selectbox with groupmembers (only)
- No user-selection at all
These two options limit the visibility of other users. There for they should be forced and apply NOT to administrators.
This commit is contained in:
Ralf Becker 2006-08-22 16:51:09 +00:00
parent d550e7234d
commit 392a532f68

View File

@ -35,17 +35,40 @@
'hook_view' => True,
'writeLangFile' => True
);
/**
* reference to the infolog preferences of the user
*
* @var array
*/
var $prefs;
/**
* @var boinfolog-object $bo
* instance of the bo-class
*
* @var boinfolog
*/
var $bo;
/**
* @var bolink-object $link reference to instance of the link-class of bo
* reference to instance of the link-class of bo
*
* @var bolink
*/
var $link;
/**
* @var string $duration_format allowed units and hours per day, can be overwritten by the projectmanager configuration, default all units, 8h
* instance of the etemplate class
*
* @var etemplate
*/
var $tmpl;
/**
* reference to the html object of etemplate
*
* @var html
*/
var $html;
/**
* allowed units and hours per day, can be overwritten by the projectmanager configuration, default all units, 8h
*
* @var string
*/
var $duration_format = ','; // comma is necessary!
@ -264,6 +287,8 @@
$rows['no_times'] = !$this->prefs['show_times'] || $this->prefs['show_times'] == 2 && !$details;
$rows['no_timesheet'] = !isset($GLOBALS['egw_info']['user']['apps']['timesheet']);
$rows['duration_format'] = ','.$this->duration_format.',,1';
$rows['no_users'] = $GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] == 'none' &&
!isset($GLOBALS['egw_info']['user']['apps']['admin']);
//echo "<p>readonlys = "; _debug_array($readonlys);
//echo "rows=<pre>".print_r($rows,True)."</pre>\n";
@ -864,6 +889,9 @@
{
$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;
$old_pm_id = is_array($pm_links) ? array_shift($pm_links) : $content['old_pm_id'];