mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-22 15:13:42 -06:00
Ensure that the 'Remove Server Group' option is available in the context menu. Fixes #5834
This commit is contained in:
parent
8e132eab08
commit
593d86d3f2
@ -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.
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user