allow the interface to get authority rights
[sfa.git] / sfa / trust / auth.py
index c6e0d9d..2f1cd2a 100644 (file)
@@ -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):