From ccd2f1d7640498a9940abc81a113626698f815be Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Mon, 18 May 2026 12:39:45 +0200 Subject: [PATCH] =?UTF-8?q?CanShareEdit=20abh=C3=A4ngig=20vom=20aktuellen?= =?UTF-8?q?=20EmployeeOid=20=3D=20CreatorOid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/ViewModel/AiPromptbausteinPromptVM.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BeWo/ViewModel/AiPromptbausteinPromptVM.cs b/BeWo/ViewModel/AiPromptbausteinPromptVM.cs index b52ddc7ac..9b3bea1ad 100644 --- a/BeWo/ViewModel/AiPromptbausteinPromptVM.cs +++ b/BeWo/ViewModel/AiPromptbausteinPromptVM.cs @@ -107,7 +107,7 @@ namespace BeWo.ViewModel public bool CanShareEdit { - get => BeWoApp.HasLoggedOnUserRight(UserRightType.AiModulePromptbausteinShare); + get => BeWoApp.HasLoggedOnUserRight(UserRightType.AiModulePromptbausteinShare) && Creator?.EmployeeOid is long owner && owner == BeWoApp.CompactLoggedOnEmployee.EmployeeOid; } public bool CanEdit