Ensure that the server list is alphabetically sorted in the Query Tool/PSQL workspace. #8636

This commit is contained in:
Akshay Joshi
2025-04-15 16:12:49 +05:30
parent 55f36912f9
commit 934f17c65e
3 changed files with 10 additions and 2 deletions
@@ -14,6 +14,7 @@ import gettext from 'sources/gettext';
export default function withCheckPermission(options, callback) {
// Check if the user has permission to access the menu item
return ()=>{
options = options ?? {};
// if the permission are not provided then no restrictions.
if(!options.permission || (options.permission && current_user.permissions?.includes(options.permission))) {
callback();