From: Anil-Kumar Vengalil Date: Tue, 26 Jan 2010 13:49:55 +0000 (+0000) Subject: On remote aggregate, the person record is enabled only if this person is enabled... X-Git-Tag: sfa-0.9-11~199 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=43f2ed2e05ac701559ae028ca3c6ab1bcff4f30c On remote aggregate, the person record is enabled only if this person is enabled on the local aggregate --- diff --git a/sfa/plc/slices.py b/sfa/plc/slices.py index 9cbff41e..d8c48b7f 100644 --- a/sfa/plc/slices.py +++ b/sfa/plc/slices.py @@ -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: