CanShareEdit abhängig vom aktuellen EmployeeOid = CreatorOid

This commit is contained in:
2026-05-18 12:39:45 +02:00
parent 21b67e0814
commit ccd2f1d764

View File

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