git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regenerate
[plcapi.git]
/
PLC
/
Methods
/
AdmGetPersonKeys.py
diff --git
a/PLC/Methods/AdmGetPersonKeys.py
b/PLC/Methods/AdmGetPersonKeys.py
index
515d393
..
ab39d07
100644
(file)
--- a/
PLC/Methods/AdmGetPersonKeys.py
+++ b/
PLC/Methods/AdmGetPersonKeys.py
@@
-31,7
+31,7
@@
class AdmGetPersonKeys(GetKeys):
if not persons:
raise PLCInvalidArgument, "No such account"
if not persons:
raise PLCInvalidArgument, "No such account"
- person = persons
.values()
[0]
+ person = persons[0]
if 'admin' not in self.caller['roles']:
if self.caller['person_id'] != person['person_id']:
if 'admin' not in self.caller['roles']:
if self.caller['person_id'] != person['person_id']: