From 6f275f5de6c21b3a00bdf15adfbca9b19a24f02c Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 19 Mar 2015 11:10:41 +0100 Subject: [PATCH] Fix: AccessAspect.Participant didn't work --- Logic/Swarm/Person.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Logic/Swarm/Person.cs b/Logic/Swarm/Person.cs index 4ad3ba44..d806d299 100644 --- a/Logic/Swarm/Person.cs +++ b/Logic/Swarm/Person.cs @@ -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) &&