mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that create RLS Policy menu should not be visible for catalog objects. Fixes #5633
This commit is contained in:
committed by
Akshay Joshi
parent
b4c25bdc0a
commit
c58fda0a70
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user