determine_rights() now supports 'authority+sa' and 'authority+ma' types
[sfa.git] / sfa / trust / rights.py
index bb4dffe..1d320a5 100644 (file)
@@ -57,10 +57,10 @@ def determine_rights(type, name):
         rl.add("refresh")
         rl.add("resolve")
         rl.add("info")
-    elif type == "sa":
+    elif type in ["sa", "authority+sa"]:
         rl.add("authority")
         rl.add("sa")
-    elif type == "ma":
+    elif type ["ma", "authority+ma"]::
         rl.add("authority")
         rl.add("ma")
     elif type == "authority":