[folks] Implicitly trust Personas which are marked as being the user
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Implicitly trust Personas which are marked as being the user
- Date: Tue, 21 Sep 2010 09:22:22 +0000 (UTC)
commit 61322635e38d64130d7333ab366aa5e32a4c73a8
Author: Philip Withnall <philip withnall collabora co uk>
Date: Mon Sep 6 13:49:31 2010 +0100
Implicitly trust Personas which are marked as being the user
We assume that the backend is in complete control of its user accounts, so
we can fully trust Personas which have Persona.is_user == true.
Helps: bgo#627402
folks/individual.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/folks/individual.vala b/folks/individual.vala
index d35696b..bd24ae4 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -652,7 +652,8 @@ public class Folks.Individual : Object,
foreach (Persona p in this._persona_list)
{
- if (p.store.trust_level == PersonaStoreTrust.NONE)
+ if (p.is_user == false &&
+ p.store.trust_level == PersonaStoreTrust.NONE)
trust_level = TrustLevel.NONE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]