From 7107dbacecfc085cf6a29a2bf55365822377a284 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 13 Dec 2016 18:50:34 +0100 Subject: [PATCH] Debugging --- Logic/Security/Authority.cs | 2 ++ Logic/Swarm/Person.cs | 1 + Site/Automation/SwarmFunctions.aspx.cs | 2 -- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Logic/Security/Authority.cs b/Logic/Security/Authority.cs index ef3db7fa..2dbbad74 100644 --- a/Logic/Security/Authority.cs +++ b/Logic/Security/Authority.cs @@ -468,6 +468,8 @@ namespace Swarmops.Logic.Security } } + throw new NotImplementedException(); + // Is this Person a Participant of an org or sub-org where the current Authority // has organizationwide access? Case 2. diff --git a/Logic/Swarm/Person.cs b/Logic/Swarm/Person.cs index c601695a..f4a0b9ac 100644 --- a/Logic/Swarm/Person.cs +++ b/Logic/Swarm/Person.cs @@ -1059,6 +1059,7 @@ namespace Swarmops.Logic.Swarm public bool MemberOfWithInherited (int orgId) { Participations participations = GetMemberships(); + foreach (Participation membership in participations) { if (membership.Organization.IsOrInherits (orgId)) diff --git a/Site/Automation/SwarmFunctions.aspx.cs b/Site/Automation/SwarmFunctions.aspx.cs index c95ffe15..318a757f 100644 --- a/Site/Automation/SwarmFunctions.aspx.cs +++ b/Site/Automation/SwarmFunctions.aspx.cs @@ -253,8 +253,6 @@ namespace Swarmops.Frontend.Automation Person person = Person.FromIdentity (personId); - throw new NotImplementedException(); - if (!authData.Authority.CanSeePerson (person)) { throw new ArgumentException(); // can't see the requested person, for whatever reason