fix(editor): Show credential share info only to appropriate users (#8020)

## Summary
The credential owner should not see the sharing info box


![image](https://github.com/n8n-io/n8n/assets/5410822/d85b47f8-f4cf-4009-beaf-03bc62008feb)
This commit is contained in:
Csaba Tuncsik
2023-12-14 11:48:51 +01:00
committed by GitHub
parent ce1ae6a7c0
commit b29b4d442b
3 changed files with 14 additions and 3 deletions

View File

@@ -41,7 +41,15 @@
})
}}
</n8n-info-tip>
<n8n-info-tip v-if="credentialPermissions.read" class="mb-s" :bold="false">
<n8n-info-tip
v-if="
credentialPermissions.read &&
credentialPermissions.share &&
!credentialPermissions.isOwner
"
class="mb-s"
:bold="false"
>
<i18n-t keypath="credentialEdit.credentialSharing.info.reader">
<template v-if="!isCredentialSharedWithCurrentUser" #notShared>
{{ $locale.baseText('credentialEdit.credentialSharing.info.notShared') }}