Disable user roles change for owner in inherited access permission [SCI-10517]

This commit is contained in:
sboursen-scinote 2024-03-26 12:29:45 +01:00
parent 4beb3fae96
commit b0341beeed

View file

@ -57,7 +57,7 @@
<div class="text-xs text-sn-grey text-nowrap">{{ userAssignment.attributes.inherit_message }}</div>
</div>
<MenuDropdown
v-if="!userAssignment.attributes.last_owner && params.object.urls.update_access"
v-if="!userAssignment.attributes.last_owner && params.object.urls.update_access && !(userAssignment.attributes.current_user && userAssignment.attributes.inherit_message)"
class="ml-auto"
:listItems="rolesFromatted(userAssignment)"
:btnText="userAssignment.attributes.user_role.name"