1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

B #4352: check ACLs when creating template (#4353)

This commit is contained in:
Alejandro Huertas Herrero 2020-03-12 20:19:53 +01:00 committed by GitHub
parent 1c7d784265
commit 65399fa32c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -714,6 +714,11 @@ bool TemplateAllocate::allocate_authorization(
string t64;
string aname;
if (!RequestManagerAllocate::allocate_authorization(paramList, tmpl, att, cluster_perms))
{
return false;
}
VirtualMachineTemplate * ttmpl = static_cast<VirtualMachineTemplate *>(tmpl);
// ------------ Check template for restricted attributes -------------------