Merge branch 'master' of ssh://float.ownsoft.de/git/beyondSoft/BeWo
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user