pi can get a slice's cred without being in the slice itself
[sfa.git] / sfa / trust / auth.py
index 43a81f3..0d57871 100644 (file)
@@ -231,7 +231,8 @@ class Auth:
 
         if type=="slice":
             researchers = record.get("researcher", [])
-            if (caller_hrn in researchers):
+            pis = record.get("PI", [])
+            if (caller_hrn in researchers + pis):
                 rl.add("refresh")
                 rl.add("embed")
                 rl.add("bind")