mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 00:09:13 +01:00
fix to show delete button for edit only for existing entries on which the user has delete-rights
This commit is contained in:
parent
3f6c7c0ec1
commit
17b1361c59
@ -446,7 +446,8 @@
|
||||
$content['info_type'] = 'note';
|
||||
}
|
||||
}
|
||||
$readonlys['delete'] = $action != '';
|
||||
$readonlys['delete'] = !$info_id || !$this->bo->check_access($info_id,PHPGW_ACL_DELETE);
|
||||
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = lang($this->messages[$info_id ? 'edit' : ($action == 'sp' ? 'add_sub' : 'add')]);
|
||||
|
||||
$this->tmpl->read('infolog.edit');
|
||||
@ -459,7 +460,7 @@
|
||||
{
|
||||
$this->tmpl->set_cell_attribute('description|links|delegation|customfields','name','description|links|delegation');
|
||||
}
|
||||
//echo "<p>uiinfolog.edit(info_id=$info_id,mode=$mode) content = "; _debug_array($content);
|
||||
echo "<p>uiinfolog.edit(info_id='$info_id',action='$action',action_id='$action_id') readonlys="; print_r($readonlys); echo ", content = "; _debug_array($content);
|
||||
$this->tmpl->exec('infolog.uiinfolog.edit',$content,array(
|
||||
'info_type' => $this->bo->enums['type'],
|
||||
'info_pri' => $this->bo->enums['priority'],
|
||||
|
Loading…
Reference in New Issue
Block a user