support authority+sm type
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 19 Jul 2011 20:03:40 +0000 (16:03 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 19 Jul 2011 20:03:40 +0000 (16:03 -0400)
sfa/trust/rights.py

index 14749cb..389b192 100644 (file)
@@ -60,7 +60,7 @@ def determine_rights(type, name):
     elif type in ["sa", "authority+sa"]:
         rl.add("authority")
         rl.add("sa")
-    elif type in ["ma", "authority+ma", "cm", "authority+cm"]:
+    elif type in ["ma", "authority+ma", "cm", "authority+cm", "sm", "authority+sm"]:
         rl.add("authority")
         rl.add("ma")
     elif type == "authority":
@@ -273,7 +273,7 @@ class Rights:
         elif type in ["sa", "authority+sa"]:
             rl.add("authority")
             rl.add("sa")
-        elif type in ["ma", "authority+ma", "cm", "authority+cm"]:
+        elif type in ["ma", "authority+ma", "cm", "authority+cm", "sm", "authority+sm"]:
             rl.add("authority")
             rl.add("ma")
         elif type == "authority":