On remote aggregate, the person record is enabled only if this person is enabled...
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Tue, 26 Jan 2010 13:49:55 +0000 (13:49 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Tue, 26 Jan 2010 13:49:55 +0000 (13:49 +0000)
sfa/plc/slices.py

index 9cbff41..d8c48b7 100644 (file)
@@ -341,10 +341,10 @@ class Slices(SimpleStorage):
             person_record = {}
             person_records = registry.resolve(credential, researcher)
             for record in person_records:
-                if record['type'] in ['user']:
+                if record['type'] in ['user'] and record['enabled']:
                     person_record = record
             if not person_record:
-                pass
+                return 1
             person_dict = person_record
             local_person=False
             if peer: