bug 11259: ROOT admin can extract template/iso even when it's not mark as extractable

status 11259: resolved fixed
This commit is contained in:
alena 2011-09-02 12:33:30 -07:00
parent ecd99ad379
commit eb9b5c1f65
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ public class TemplateManagerImpl implements TemplateManager, Manager, TemplateSe
throw new IllegalArgumentException("Please specify a valid zone.");
}
if (!template.isExtractable()) {
if (!_accountMgr.isRootAdmin(caller.getType()) && !template.isExtractable()) {
throw new InvalidParameterValueException("Unable to extract template id=" + templateId + " as it's not extractable");
}