Merge branch 'master' of ssh://float.ownsoft.de/git/beyondSoft/BeWo

This commit is contained in:
2023-12-06 18:17:13 +01:00
210 changed files with 85596 additions and 25780 deletions

View File

@@ -572,15 +572,19 @@ namespace BeWo.Service.Plugins
private bool UserIsAllowedToViewPerson(Person person, List<CustomerPersonRelationDC> person2CustomerList, List<long> allowedCustomerOids, bool darfFamilieSehen, bool darfAlleKlientenSehen, bool darfKlientenDesTeamsSehen, bool darfSeineKlientenSehen)
{
if (darfFamilieSehen && darfAlleKlientenSehen)
if (person.LastName == "Aßmann")
{
int test = 0;
}
if (darfFamilieSehen && darfAlleKlientenSehen)
{
return true;
}
if (!darfFamilieSehen)
{
return person2CustomerList.Count(p => p.IstFamilie) == 0;
}
//if (!darfFamilieSehen)
//{
// return person2CustomerList.Count(p => p.IstFamilie) > 0;
//}
if (darfAlleKlientenSehen)
{
return true;