From d29ccea2997d2cf6c83aab46acc0871f2bda57b5 Mon Sep 17 00:00:00 2001 From: Murtuza Zabuawala Date: Fri, 21 Oct 2016 12:37:47 +0100 Subject: [PATCH] Don't allow setting of security labels on edbspl stored procedures (by correctly checking the node type). Fixes #1576 --- .../schemas/functions/templates/function/js/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/function/js/functions.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/function/js/functions.js index 2ef91f896..299f0f794 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/function/js/functions.js +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/function/js/functions.js @@ -310,7 +310,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) { canEdit: false, canDelete: true, uniqueCol : ['provider'], disabled: 'isDisabled', control: 'unique-col-collection', visible: function() { - return this.node_data && this.node_data._type != 'procedure'; + return this.node && this.node.type != "procedure"; } } ],