git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1580fc
)
determine_rights() now supports 'authority+sa' and 'authority+ma' types
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 3 May 2011 20:26:38 +0000
(16:26 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 3 May 2011 20:26:38 +0000
(16:26 -0400)
sfa/trust/rights.py
patch
|
blob
|
history
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")
- 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":