mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
add/clarify status message when editing is not allowed via status; use check_statusForEditRights in controlling the edit state in edit mode as well
This commit is contained in:
parent
d9a824efa2
commit
ad6cf1d8ae
@ -85,16 +85,13 @@ class timesheet_ui extends timesheet_bo
|
||||
$referer = preg_match('/menuaction=([^&]+)/',$_SERVER['HTTP_REFERER'],$matches) ? $matches[1] :
|
||||
(strpos($_SERVER['HTTP_REFERER'],'/infolog/index.php') !== false ? 'infolog.infolog_ui.index' : TIMESHEET_APP.'.timesheet_ui.index');
|
||||
|
||||
if (!isset($GLOBALS['egw_info']['user']['apps']['admin']) && $this->data['ts_status'])
|
||||
{
|
||||
if ($this->status_labels_config[$this->data['ts_status']]['admin'])
|
||||
if (!$this->check_statusForEditRights($this->data))
|
||||
{
|
||||
$view = true; //only admin can edit with this status
|
||||
$only_admin_edit = true;
|
||||
$msg = lang('only Admin can edit this status');
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//echo "<p>ts_start=$content[ts_start], start_time=$content[start_time], end_time=$content[end_time], ts_duration=$content[ts_duration], ts_quantity=$content[ts_quantity]</p>\n";
|
||||
|
@ -84,7 +84,7 @@ no status timesheet de Kein Status
|
||||
none: use only free project-names admin de Keine: verwende nur freie Projektnamen
|
||||
number of row for a multiline inputfield or line of a multi-select-box timesheet de Anzahl von Reihen für ein Mehrzeiliges Textfeld oder einer Mehrfachauswahlbox
|
||||
only admin timesheet de nur Admin
|
||||
only admin can edit this status timesheet de nur Admins dürfen diesen Status bearbeiten
|
||||
only admin can edit this status timesheet de nur Admins dürfen Stundenzettel mit diesen Status bearbeiten
|
||||
or endtime timesheet de oder Endzeit
|
||||
order timesheet de Reihenfolge
|
||||
parent timesheet de Übergeordnet
|
||||
|
@ -72,7 +72,7 @@ no status timesheet en No status
|
||||
none: use only free project-names admin en None: use only free project names
|
||||
number of row for a multiline inputfield or line of a multi-select-box timesheet en Number of row for a multi-line input field or line of a multi select box
|
||||
only admin timesheet en Only admin
|
||||
only admin can edit this status timesheet en Only admin can edit this status
|
||||
only admin can edit this status timesheet en Only admins can edit timesheets with this status
|
||||
or endtime timesheet en or end time
|
||||
order timesheet en Order
|
||||
parent timesheet en Parent
|
||||
|
Loading…
Reference in New Issue
Block a user