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

This commit is contained in:
juanmont authored and Ruben S. Montero committed 2017-11-24 12:17:18 +01:00
1 parent 700f544439
commit d985a2ca5c
1 file changed
+1 -1
@@ -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>';
}