From: Tony Mack Date: Thu, 29 Oct 2009 18:00:22 +0000 (+0000) Subject: allow the interface to get authority rights X-Git-Tag: sfa-0.9-6~87 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6ef67c3657be04f28d6e88b84c8a023896ff8328;p=sfa.git allow the interface to get authority rights --- diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index c6e0d9d4..2f1cd2a5 100644 --- a/sfa/trust/auth.py +++ b/sfa/trust/auth.py @@ -238,9 +238,10 @@ class Auth: rl.add("info") elif type == "authority": - rl.add("authority") pis = record.get("pi", []) operators = record.get("operator", []) + if (cred_object_hrn == config.SFA_INTERFACE_HRN): + rl.add("authority") if (cred_object_hrn in pis): rl.add("authority,sa") if (cred_object_hrn in operators):