mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Allow owners and admins to share workflows and credentials they don't own (#7833)
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
</n8n-text>
|
||||
</div>
|
||||
<div v-else :class="$style.container">
|
||||
<n8n-info-tip v-if="!workflowPermissions.isOwner" :bold="false" class="mb-s">
|
||||
<n8n-info-tip v-if="!workflowPermissions.updateSharing" :bold="false" class="mb-s">
|
||||
{{
|
||||
$locale.baseText('workflows.shareModal.info.sharee', {
|
||||
interpolate: { workflowOwnerName },
|
||||
@@ -213,8 +213,9 @@ export default defineComponent({
|
||||
const isAlreadySharedWithUser = (this.sharedWith || []).find(
|
||||
(sharee) => sharee.id === user.id,
|
||||
);
|
||||
const isOwner = this.workflow?.ownedBy?.id === user.id;
|
||||
|
||||
return !isCurrentUser && !isAlreadySharedWithUser;
|
||||
return !isCurrentUser && !isAlreadySharedWithUser && !isOwner;
|
||||
});
|
||||
},
|
||||
sharedWithList(): Array<Partial<IUser>> {
|
||||
|
||||
Reference in New Issue
Block a user