Disables publish as private status if user is not allowed to publish item.

This commit is contained in:
mateuswetah 2024-05-07 15:50:19 -03:00
parent 3ce049739b
commit df1a639a93
1 changed files with 2 additions and 1 deletions

View File

@ -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">
<span class="icon has-text-gray">
<i
class="tainacan-icon tainacan-icon-18px"