Skip to content

Commit b288d41

Browse files
Fix : Administrators continue to get the full
1 parent f318602 commit b288d41

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

deps/rabbitmq_management/priv/www/js/dispatcher.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,13 @@ dispatcher_add(function(sammy) {
308308
});
309309
let datamodel = {
310310
'limits': '/vhost-limits',
311-
'user_limits': '/user-limits',
312311
'vhosts': '/vhosts'
313312
}
314313
if (ac.isAdministratorUser()) {
314+
datamodel['user_limits'] = '/user-limits'
315315
datamodel['users'] = '/users'
316+
} else {
317+
datamodel['user_limits'] = '/user-limits/' + esc(user_name)
316318
}
317319
path('#/limits', datamodel, 'limits');
318320

0 commit comments

Comments
 (0)