From 7dde1015a031178e2e8e6d5d75e49ecdbab3a4a1 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 13 Dec 2016 18:31:24 +0100 Subject: [PATCH] Still debugging something on Sandbox --- Site/Automation/SwarmFunctions.aspx.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Site/Automation/SwarmFunctions.aspx.cs b/Site/Automation/SwarmFunctions.aspx.cs index 91320ac4..c95ffe15 100644 --- a/Site/Automation/SwarmFunctions.aspx.cs +++ b/Site/Automation/SwarmFunctions.aspx.cs @@ -251,10 +251,10 @@ namespace Swarmops.Frontend.Automation personId = authData.CurrentUser.Identity; } - throw new NotImplementedException(); - 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