define the rights for authorities
authorTony Mack <tmack@cs.princeton.edu>
Wed, 20 May 2009 03:32:21 +0000 (03:32 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 20 May 2009 03:32:21 +0000 (03:32 +0000)
geni/util/rights.py

index 50f1374..154f674 100644 (file)
@@ -50,6 +50,8 @@ def determine_rights(type, name):
         rl.add("authority,sa")
     elif type == "ma":
         rl.add("authority,ma")
+    elif type == "authority":
+        r1.add("authority,sa,ma")
     elif type == "slice":
         rl.add("refresh")
         rl.add("embed")
@@ -222,6 +224,8 @@ class RightList:
             rl.add("authority,sa")
         elif type == "ma":
             rl.add("authority,ma")
+        elif type == "authority":
+            rl.add("authority,sa,ma")
         elif type == "slice":
             rl.add("refresh")
             rl.add("embed")