From 65977f97bffa41e8b0046b75d59db17161561f65 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Wed, 17 Jun 2026 12:51:27 +0200 Subject: [PATCH] =?UTF-8?q?Nur=20oberste=20Folder=20k=C3=B6nnen=20geteilt?= =?UTF-8?q?=20werden.=20Ansonsten=20mit=20Tiefensuche=20nach=20public=20Kn?= =?UTF-8?q?oten=20suchen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/ViewModel/AiPromptbausteinFolderVM.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BeWo/ViewModel/AiPromptbausteinFolderVM.cs b/BeWo/ViewModel/AiPromptbausteinFolderVM.cs index 1fb3f2ba7..32b0893d5 100644 --- a/BeWo/ViewModel/AiPromptbausteinFolderVM.cs +++ b/BeWo/ViewModel/AiPromptbausteinFolderVM.cs @@ -237,7 +237,10 @@ namespace BeWo.ViewModel public bool CanShareEdit { - get => BeWoApp.HasLoggedOnUserRight(UserRightType.AiModulePromptbausteinShare) && Creator?.EmployeeOid is long owner && owner == BeWoApp.CompactLoggedOnEmployee.EmployeeOid; + get => ParentFolderOid < 0 + && BeWoApp.HasLoggedOnUserRight(UserRightType.AiModulePromptbausteinShare) + && Creator?.EmployeeOid is long owner + && owner == BeWoApp.CompactLoggedOnEmployee.EmployeeOid; } public AiPromptbausteinFolderVM Parent { get; set; }