Fix: AccessAspect.Participant didn't work

This commit is contained in:
Rick Falkvinge
2015-03-19 11:10:41 +01:00
parent 49403a8230
commit 6f275f5de6
+10
View File
@@ -1128,6 +1128,16 @@ namespace Swarmops.Logic.Swarm
return true;
}
if (access.Aspect == AccessAspect.Participant)
{
// Check that a membership (or whatever this org calls it) exists, for this org or a parentline org
if (this.MemberOfWithInherited (access.Organization))
{
return true;
}
}
// if Open Ledgers
if ((access.Aspect == AccessAspect.Bookkeeping || access.Aspect == AccessAspect.Financials) &&