From f82f2c6752fdd796552ecee5876064ada97e9b97 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 5 Jan 2017 15:01:55 +0100 Subject: [PATCH] =?UTF-8?q?Debugging=20r=C3=A4ksm=C3=B6rg=C3=A5s=20II?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Site/Automation/SwarmFunctions.aspx.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Site/Automation/SwarmFunctions.aspx.cs b/Site/Automation/SwarmFunctions.aspx.cs index 1ee061b7..bd9d18eb 100644 --- a/Site/Automation/SwarmFunctions.aspx.cs +++ b/Site/Automation/SwarmFunctions.aspx.cs @@ -253,7 +253,7 @@ namespace Swarmops.Frontend.Automation Person person = Person.FromIdentity (personId); - if (!authData.Authority.CanSeePerson (person)) + if (!authData.Authority.CanSeePerson (person) && !self) { throw new ArgumentException(); // can't see the requested person, for whatever reason } @@ -261,10 +261,10 @@ namespace Swarmops.Frontend.Automation return new PersonEditorData { Success = true, - Name = JavascriptEscape(person.Name), - Mail = JavascriptEscape(person.Mail), - Phone = JavascriptEscape(person.Phone), - TwitterId = JavascriptEscape(person.TwitterId), + Name = person.Name, + Mail = person.Mail, + Phone = person.Phone, + TwitterId = person.TwitterId, TwoFactorActive = !string.IsNullOrEmpty(person.BitIdAddress) }; }