diff --git a/gui/src/components/archive/ArchiveBrowser.js b/gui/src/components/archive/ArchiveBrowser.js index 9cbcc841c281f5ca8e07443e2e25019dd9266617..6df3ebce8c7911c870a1769a7d963ec04a2575d6 100644 --- a/gui/src/components/archive/ArchiveBrowser.js +++ b/gui/src/components/archive/ArchiveBrowser.js @@ -446,11 +446,9 @@ class ArchiveAdaptor extends Adaptor { async initialize(api, dataStore) { this.api = api this.dataStore = dataStore - const {editable} = await dataStore.getEntryAsync( + const {editable, archive: {metadata: {readonly}}} = await dataStore.getEntryAsync( this.parsedObjUrl.deploymentUrl, this.parsedObjUrl.entryId, false, '*') - const archive = await dataStore.getEntryAsync( - this.parsedObjUrl.deploymentUrl, this.parsedObjUrl.entryId, false, '*') - this.entryIsEditable = editable && !archive.readonly + this.entryIsEditable = editable && !readonly } async adaptorFactory(objUrl, obj, property) {