mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-29 21:48:45 +02:00
Customer portal : Readonly attachments when object is not longer editable
SVN:trunk[4250]
This commit is contained in:
@@ -48,7 +48,7 @@ class BsFileUploadFieldRenderer extends FieldRenderer
|
||||
$oOutput = new RenderingOutput();
|
||||
|
||||
$sObjectClass = get_class($this->oField->GetObject());
|
||||
$sIsDeleteAllowed = ($this->oField->GetAllowDelete()) ? 'true' : 'false';
|
||||
$sIsDeleteAllowed = ($this->oField->GetAllowDelete() && !$this->oField->GetReadOnly()) ? 'true' : 'false';
|
||||
$sDeleteBtn = Dict::S('Portal:Button:Delete');
|
||||
$sTempId = session_id() . '_' . $this->oField->GetTransactionId();
|
||||
$sUploadDropZoneLabel = Dict::S('Portal:Attachments:DropZone:Message');
|
||||
|
||||
Reference in New Issue
Block a user