projects
/
py-rsbac
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0cfcb0
)
Fixed rc.grand and rc.revoke functions.
author
Frédéric Jolliton
<git@frederic.jolliton.com>
Sun, 5 Nov 2006 13:19:11 +0000
(13:19 +0000)
committer
Frédéric Jolliton
<git@frederic.jolliton.com>
Sun, 5 Nov 2006 13:19:11 +0000
(13:19 +0000)
rsbac/rc.py
patch
|
blob
|
history
diff --git
a/rsbac/rc.py
b/rsbac/rc.py
index
f7cf9e2
..
b12d4bf
100644
(file)
--- a/
rsbac/rc.py
+++ b/
rsbac/rc.py
@@
-166,7
+166,7
@@
def grant( role , type , requests ) :
"""
rights , ttl = role.typeCompatibility[ type ]
- rights |=
rsbac.
RequestVector( requests )
+ rights |= RequestVector( requests )
role.typeCompatibility[ type ] = rights , ttl
@export
@@
-179,7
+179,7
@@
def revoke( role , type , requests ) :
"""
rights , ttl = role.typeCompatibility[ type ]
- rights &= ~
rsbac.
RequestVector( requests )
+ rights &= ~RequestVector( requests )
role.typeCompatibility[ type ] = rights , ttl
def findUnnamedRole( start = 0 ) :