From f5189e148ab994d75b3e19df6d0a39a13ef52ceb Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 7 May 2024 15:50:19 -0300 Subject: [PATCH] Disables publish as private status if user is not allowed to publish item. --- .../admin/components/other/item-creation-status-dialog.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/admin/components/other/item-creation-status-dialog.vue b/src/views/admin/components/other/item-creation-status-dialog.vue index e85143f93..fed70b25c 100644 --- a/src/views/admin/components/other/item-creation-status-dialog.vue +++ b/src/views/admin/components/other/item-creation-status-dialog.vue @@ -38,7 +38,8 @@ v-for="(statusOption, index) of availableStatus" :key="index" v-model="selectedStatus" - :native-value="statusOption.slug"> + :native-value="statusOption.slug" + :disabled="(statusOption.slug === 'private' || statusOption.slug === 'publish') && !currentUserCanPublish">