mirror of https://github.com/apache/cloudstack.git
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:
parent
ecd99ad379
commit
eb9b5c1f65
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue