git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ef8e41
)
Fixed permission check.
author
Marta Carbone
<marta@prova.iet.unipi.it>
Tue, 2 Sep 2008 23:22:37 +0000
(23:22 +0000)
committer
Marta Carbone
<marta@prova.iet.unipi.it>
Tue, 2 Sep 2008 23:22:37 +0000
(23:22 +0000)
PLC/Methods/GetDummyBoxMedium.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetDummyBoxMedium.py
b/PLC/Methods/GetDummyBoxMedium.py
index
058342a
..
1a4252a
100644
(file)
--- a/
PLC/Methods/GetDummyBoxMedium.py
+++ b/
PLC/Methods/GetDummyBoxMedium.py
@@
-100,7
+100,7
@@
class GetDummyBoxMedium(Method):
# Permission checks
assert self.caller is not None
if 'admin' not in self.caller['roles']:
- if dummybox['
dummybox
_id'] not in self.caller['site_ids']:
+ if dummybox['
site
_id'] not in self.caller['site_ids']:
raise PLCPermissionDenied, "Not allowed to generate an iso image for %s %s" % \
(dummybox['hostname'], dummybox_id)