Nur oberste Folder können geteilt werden. Ansonsten mit Tiefensuche nach public Knoten suchen

This commit is contained in:
2026-06-17 12:51:27 +02:00
parent eadefc7f92
commit 65977f97bf

View File

@@ -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; }