diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/row_security_policies/static/js/row_security_policy.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/row_security_policies/static/js/row_security_policy.js index dd1545853..fe96f81ab 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/row_security_policies/static/js/row_security_policy.js +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/row_security_policies/static/js/row_security_policy.js @@ -120,6 +120,19 @@ define('pgadmin.node.row_security_policy', [ control: 'sql-field', visible: true, group: gettext('Commands'), disabled: 'disableWithCheck', }, + { + id: 'rls_expression_key_note', label: gettext('RLS policy expression'), + type: 'note', group: 'Commands', mode: ['create', 'edit'], + text: [ + '', + ].join(''), + }, { id: 'policyowner', label: gettext('Role'), cell: 'string', control: 'node-list-by-name', diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/static/js/table.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/static/js/table.js index 77e4fe8e2..126f91fcc 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/static/js/table.js +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/static/js/table.js @@ -1248,7 +1248,7 @@ define('pgadmin.node.table', [ return msg; } this.errorModel.unset('partition_keys'); - if (this.get('rlspolicy') && this.isNew() && this.changed.rlspolicy){ + if (this.get('rlspolicy') && this.changed.rlspolicy){ Alertify.alert( gettext('Check Policy?'), gettext('Please check if any policy exist. If no policy exists for the table, a default-deny policy is used, meaning that no rows are visible or can be modified by other users')