From: Quentin Smith Date: Sat, 2 Feb 2008 08:33:15 +0000 (-0500) Subject: Check quotas against the machine's owner and not the user committing the act X-Git-Tag: sipb-xen-www/1~15 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/7077ad5224ba9f02964a1afa0045ef67d2bc956f Check quotas against the machine's owner and not the user committing the act svn path=/trunk/web/; revision=266 --- diff --git a/main.py b/main.py index 7e7e23d..a3c84ee 100755 --- a/main.py +++ b/main.py @@ -146,10 +146,10 @@ def parseCreate(user, fields): owner = validation.testOwner(user, fields.getfirst('owner')) memory = fields.getfirst('memory') - memory = validation.validMemory(user, memory, on=True) + memory = validation.validMemory(owner, memory, on=True) disk_size = fields.getfirst('disk') - disk_size = validation.validDisk(user, disk_size) + disk_size = validation.validDisk(owner, disk_size) vm_type = fields.getfirst('vmtype') if vm_type not in ('hvm', 'paravm'):