git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
determine_rights() now supports 'authority+sa' and 'authority+ma' types
[sfa.git]
/
sfa
/
trust
/
rights.py
diff --git
a/sfa/trust/rights.py
b/sfa/trust/rights.py
index
bb4dffe
..
1d320a5
100644
(file)
--- a/
sfa/trust/rights.py
+++ b/
sfa/trust/rights.py
@@
-57,10
+57,10
@@
def determine_rights(type, name):
rl.add("refresh")
rl.add("resolve")
rl.add("info")
rl.add("refresh")
rl.add("resolve")
rl.add("info")
- elif type
== "sa"
:
+ elif type
in ["sa", "authority+sa"]
:
rl.add("authority")
rl.add("sa")
rl.add("authority")
rl.add("sa")
- elif type
== "ma"
:
+ elif type
["ma", "authority+ma"]:
:
rl.add("authority")
rl.add("ma")
elif type == "authority":
rl.add("authority")
rl.add("ma")
elif type == "authority":