mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that the 'Remove Server Group' option is available in the context menu. Fixes #5834
This commit is contained in:
committed by
Akshay Joshi
parent
8e132eab08
commit
593d86d3f2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user