1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #1490: Checked if owner has permissions for manage the template

This commit is contained in:
juanmont 2017-11-24 12:17:18 +01:00 committed by Ruben S. Montero
parent 700f544439
commit d985a2ca5c

View File

@ -169,7 +169,7 @@ define(function(require) {
}
}
if (Config.isTabActionEnabled("provision-tab", "Template.delete")) {
if (Config.isTabActionEnabled("provision-tab", "Template.delete") && data["PERMISSIONS"]["OWNER_M"] === "1") {
actions_html += '<a class="provision_confirm_delete_template_button" title="'+ Locale.tr("Delete")+'" href="#"><i class="fa fa-fw fa-lg fa-trash-o only-on-hover"/></a>';
}