From ae8ec7627d814c926205c4d85aaffbfb7fbad589 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 24 Feb 2014 16:28:33 +0000 Subject: [PATCH] restore to where we were --- Site5/Automation/Json-GetPersonAvatar.aspx.cs | 2 +- Site5/Automation/Json-SearchPeoplePattern.aspx.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Site5/Automation/Json-GetPersonAvatar.aspx.cs b/Site5/Automation/Json-GetPersonAvatar.aspx.cs index 3970d3e3..50761b3e 100644 --- a/Site5/Automation/Json-GetPersonAvatar.aspx.cs +++ b/Site5/Automation/Json-GetPersonAvatar.aspx.cs @@ -20,7 +20,7 @@ namespace Swarmops.Frontend.Automation People matches = People.FromSingle(Person.FromIdentity(Int32.Parse(personId))); - matches = matches.GetVisiblePeopleByAuthority(CurrentUser.GetAuthority()); + matches = Authorization.FilterPeopleToMatchAuthority(matches, CurrentUser.GetAuthority()); if (matches.Count == 1) // still allowed { diff --git a/Site5/Automation/Json-SearchPeoplePattern.aspx.cs b/Site5/Automation/Json-SearchPeoplePattern.aspx.cs index e7dd0c75..21db0a28 100644 --- a/Site5/Automation/Json-SearchPeoplePattern.aspx.cs +++ b/Site5/Automation/Json-SearchPeoplePattern.aspx.cs @@ -21,7 +21,7 @@ namespace Swarmops.Frontend.Automation People matches = People.FromNamePattern(pattern); - matches = matches.GetVisiblePeopleByAuthority(CurrentUser.GetAuthority()); + matches = Authorization.FilterPeopleToMatchAuthority(matches, CurrentUser.GetAuthority()); if (matches.Count > 10) {