pi can get a slice's cred without being in the slice itself
authorTony Mack <tmack@cs.princeton.edu>
Mon, 4 Jan 2010 20:37:03 +0000 (20:37 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Mon, 4 Jan 2010 20:37:03 +0000 (20:37 +0000)
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")