summaryrefslogtreecommitdiff
path: root/src/components/_sila/Global
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/_sila/Global')
-rw-r--r--src/components/_sila/Global/FormFile.vue1
-rw-r--r--src/components/_sila/Global/TableToolbar.vue1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/components/_sila/Global/FormFile.vue b/src/components/_sila/Global/FormFile.vue
index ee93ba49..686c9a09 100644
--- a/src/components/_sila/Global/FormFile.vue
+++ b/src/components/_sila/Global/FormFile.vue
@@ -28,6 +28,7 @@
'btn-secondary': isSecondary,
'btn-primary': !isSecondary,
}"
+ :disabled="$store.getters['authentication/role'] === 'ReadOnly'"
@click="$bvModal.show(`modal-${id}`)"
>
{{ $t('global.fileUpload.browseText') }}
diff --git a/src/components/_sila/Global/TableToolbar.vue b/src/components/_sila/Global/TableToolbar.vue
index 028b0497..53d004cf 100644
--- a/src/components/_sila/Global/TableToolbar.vue
+++ b/src/components/_sila/Global/TableToolbar.vue
@@ -13,6 +13,7 @@
:data-test-id="`table-button-${action.value}Selected`"
variant="primary"
class="d-block"
+ :disabled="$store.getters['authentication/role'] === 'ReadOnly'"
@click="$emit('batch-action', action.value)"
>
{{ action.label }}