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