Ensure that the 'Remove Server Group' option is available in the context menu. Fixes #5834

This commit is contained in:
Pradip Parkale 2020-09-15 13:19:00 +05:30 committed by Akshay Joshi
parent 8e132eab08
commit 593d86d3f2
2 changed files with 3 additions and 2 deletions

View File

@ -45,4 +45,5 @@ Bug fixes
| `Issue #5815 <https://redmine.postgresql.org/issues/5815>`_ - Fixed an issue where clicking on the 'Generate script' button shows a forever spinner due to pop up blocker.
| `Issue #5816 <https://redmine.postgresql.org/issues/5816>`_ - Ensure that the 'CREATE SCHEMA' statement should be present in the generated script if the schema is not present in the target database.
| `Issue #5820 <https://redmine.postgresql.org/issues/5820>`_ - Fixed an issue while refreshing Resource Group.
| `Issue #5833 <https://redmine.postgresql.org/issues/5833>`_ - Fixed an issue where custom sequences are not visible when show system objects are set to false.
| `Issue #5833 <https://redmine.postgresql.org/issues/5833>`_ - Fixed an issue where custom sequences are not visible when show system objects are set to false.
| `Issue #5834 <https://redmine.postgresql.org/issues/5834>`_ - Ensure that the 'Remove Server Group' option is available in the context menu.

View File

@ -83,7 +83,7 @@ define('pgadmin.node.server_group', [
canDrop: function(itemData) {
var serverOwner = itemData.user_id;
if (serverOwner != current_user.id)
if (serverOwner != current_user.id && !_.isUndefined(serverOwner))
return false;
return true; },
dropAsRemove: true,