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:
6d84f7e
)
fix bug when raising PermissionError
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 1 Feb 2012 22:12:16 +0000
(17:12 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 1 Feb 2012 22:12:16 +0000
(17:12 -0500)
sfa/managers/registry_manager.py
patch
|
blob
|
history
diff --git
a/sfa/managers/registry_manager.py
b/sfa/managers/registry_manager.py
index
b5be45f
..
9fd2659
100644
(file)
--- a/
sfa/managers/registry_manager.py
+++ b/
sfa/managers/registry_manager.py
@@
-76,8
+76,8
@@
class RegistryManager:
rights = api.auth.determine_user_rights(caller_hrn, record)
# make sure caller has rights to this object
if rights.is_empty():
- raise PermissionError(
caller_hrn + " has no rights to " + record['name'])
-
+ raise PermissionError(
"%s has no rights to %s (%s)" % \
+ (caller_hrn, object_hrn, xrn))
object_gid = GID(string=record['gid'])
new_cred = Credential(subject = object_gid.get_subject())
new_cred.set_gid_caller(caller_gid)