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

(cherry picked from commit d985a2ca5c)
This commit is contained in:
juanmont authored and Ruben S. Montero committed 2017-11-24 12:18:14 +01:00
1 parent 0bb1cd3b48
commit b5f8722aed
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>';
}