elif type in ["sa", "authority+sa"]:
rl.add("authority")
rl.add("sa")
- elif type in ["ma", "authority+ma"]:
+ elif type in ["ma", "authority+ma", "cm", "authority+cm"]:
rl.add("authority")
rl.add("ma")
elif type == "authority":
# @param op_name is an operation to check, for example "listslices"
def can_perform(self, op_name):
+
for right in self.rights:
if right.can_perform(op_name):
return True
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 in ["ma", "authority+ma", "cm", "authority+cm"]:
rl.add("authority")
rl.add("ma")
elif type == "authority":