From db26a6beb983540aacf1220c58e2fd3e6d48c914 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 3 Aug 2023 10:43:28 +0200 Subject: [PATCH] dashboard: only show volumes UI for admins and owners --- dashboard/src/views/volumes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/views/volumes.js b/dashboard/src/views/volumes.js index 665b762ad..89b157e7c 100644 --- a/dashboard/src/views/volumes.js +++ b/dashboard/src/views/volumes.js @@ -5,7 +5,7 @@ /* global async */ angular.module('Application').controller('VolumesController', ['$scope', '$location', '$timeout', 'Client', function ($scope, $location, $timeout, Client) { - Client.onReady(function () { if (!Client.getUserInfo().isAtLeastUserManager) $location.path('/'); }); + Client.onReady(function () { if (!Client.getUserInfo().isAtLeastAdmin) $location.path('/'); }); var refreshVolumesTimerId = null;