From 39702f46081ecb6fbd213f5c171e650f3b04af66 Mon Sep 17 00:00:00 2001 From: Max Chopart Date: Wed, 13 Dec 2023 15:33:22 +0100 Subject: [PATCH] [Upd #18] Record status is now visible by regular user --- js/components/record/RecordRow.js | 9 ++++----- js/components/record/RecordTable.js | 4 +--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/js/components/record/RecordRow.js b/js/components/record/RecordRow.js index 9c40e256..4fec6c6d 100644 --- a/js/components/record/RecordRow.js +++ b/js/components/record/RecordRow.js @@ -70,11 +70,10 @@ let RecordRow = (props) => { {formatDate(new Date(record.lastModified ? record.lastModified : record.dateCreated))} - { isAdmin && - - - - } + + + + diff --git a/js/components/record/RecordTable.js b/js/components/record/RecordTable.js index feee6bbd..f6cd4f3f 100644 --- a/js/components/record/RecordTable.js +++ b/js/components/record/RecordTable.js @@ -94,9 +94,7 @@ class RecordTable extends React.Component { && {this.i18n('records.form-template')} } {this.i18n('records.last-modified')} - {(this._isAdmin()) - && {this.i18n('records.completion-status')} - } + {this.i18n('records.completion-status')} {this.i18n('actions')}