diff --git a/util/util.go b/util/routine.go similarity index 100% rename from util/util.go rename to util/routine.go diff --git a/web/src/RecordListPage.js b/web/src/RecordListPage.js index 9918fb2a..6d4cbe93 100644 --- a/web/src/RecordListPage.js +++ b/web/src/RecordListPage.js @@ -44,7 +44,7 @@ class RecordListPage extends BaseListPage { } renderTable(records) { - const columns = [ + let columns = [ { title: i18next.t("general:Name"), dataIndex: "name", @@ -174,6 +174,10 @@ class RecordListPage extends BaseListPage { }, ]; + if (Setting.isLocalAdminUser(this.props.account)) { + columns = columns.filter(column => column.key !== "name" && column.key !== "organization"); + } + const paginationProps = { total: this.state.pagination.total, pageSize: this.state.pagination.pageSize,