mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-19 01:15:04 -05:00
Ensure that the server list is alphabetically sorted in the Query Tool/PSQL workspace. #8636
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user