From ed059ad1c34a78aacf0c27b1f0b65b42154b4116 Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Wed, 10 Feb 2010 18:16:39 +0000 Subject: [PATCH] bug-fix --- sfa/managers/registry_manager_pl.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sfa/managers/registry_manager_pl.py b/sfa/managers/registry_manager_pl.py index 1e43bf09..e4fcf839 100644 --- a/sfa/managers/registry_manager_pl.py +++ b/sfa/managers/registry_manager_pl.py @@ -32,8 +32,9 @@ def get_credential(api, xrn, type, is_self=False): # verify_cancreate_credential requires that the member lists # (researchers, pis, etc) be filled in api.fill_record_info(record) - if not record['enabled']: - raise AccountNotEnabled(": PlanetLab account %s is not enabled. Please contact your site PI" %(record['email'])) + if record['type']=='user': + if not record['enabled']: + raise AccountNotEnabled(": PlanetLab account %s is not enabled. Please contact your site PI" %(record['email'])) # get the callers gid # if this is a self cred the record's gid is the caller's gid -- 2.43.0