Don't allow setting of security labels on edbspl stored procedures (by correctly checking the node type). Fixes #1576

This commit is contained in:
Murtuza Zabuawala 2016-10-21 12:37:47 +01:00 committed by Dave Page
parent 1908e86d22
commit d29ccea299

View File

@ -310,7 +310,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
canEdit: false, canDelete: true, uniqueCol : ['provider'], canEdit: false, canDelete: true, uniqueCol : ['provider'],
disabled: 'isDisabled', control: 'unique-col-collection', disabled: 'isDisabled', control: 'unique-col-collection',
visible: function() { visible: function() {
return this.node_data && this.node_data._type != 'procedure'; return this.node && this.node.type != "procedure";
} }
} }
], ],