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

@@ -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,