From bd81204cea99ea493793b1c6fe7f0ffa3c3b5b45 Mon Sep 17 00:00:00 2001 From: Marta Carbone Date: Tue, 2 Sep 2008 23:22:37 +0000 Subject: [PATCH] Fixed permission check. --- PLC/Methods/GetDummyBoxMedium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PLC/Methods/GetDummyBoxMedium.py b/PLC/Methods/GetDummyBoxMedium.py index 058342a4..1a4252ac 100644 --- 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) -- 2.47.0