Ensure that create RLS Policy menu should not be visible for catalog objects. Fixes #5633

This commit is contained in:
Pradip Parkale
2020-07-09 18:04:32 +05:30
committed by Akshay Joshi
parent b4c25bdc0a
commit c58fda0a70
2 changed files with 7 additions and 1 deletions

View File

@@ -222,6 +222,11 @@ define('pgadmin.node.row_security_policy', [
var treeData = this.getTreeNodeHierarchy(item),
server = treeData['server'];
// If node is under catalog then do not allow 'create' menu
if (treeData['catalog'] != undefined)
return false;
// If server is less than 9.5 then do not allow 'create' menu
if (server && server.version < 90500)
return false;