From 335c7b42704b49fdf218319f53faf02ac7852c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Cogolu=C3=A8gnes?= Date: Fri, 11 Dec 2020 16:57:33 +0100 Subject: Do not split user tags in management UI As they are no longer a comma-separated list in a string. References #2667 --- deps/rabbitmq_management/priv/www/js/global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/rabbitmq_management/priv/www/js/global.js b/deps/rabbitmq_management/priv/www/js/global.js index 730b003d65..4e8745d8cc 100644 --- a/deps/rabbitmq_management/priv/www/js/global.js +++ b/deps/rabbitmq_management/priv/www/js/global.js @@ -630,7 +630,7 @@ var user; function setup_global_vars() { var overview = JSON.parse(sync_get('/overview')); rates_mode = overview.rates_mode; - user_tags = expand_user_tags(user.tags.split(",")); + user_tags = expand_user_tags(user.tags); user_administrator = jQuery.inArray("administrator", user_tags) != -1; is_user_policymaker = jQuery.inArray("policymaker", user_tags) != -1; user_monitor = jQuery.inArray("monitoring", user_tags) != -1; -- cgit v1.2.1