Fix role definitions

This commit is contained in:
Girish Ramakrishnan
2023-10-30 18:37:02 +01:00
parent 934c701be2
commit 1ddc1cec20
6 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
/* global angular */
angular.module('Application').controller('EmailsQueueController', ['$scope', '$location', '$translate', '$timeout', 'Client', function ($scope, $location, $translate, $timeout, Client) {
Client.onReady(function () { if (!Client.getUserInfo().isAtLeastOwner) $location.path('/'); });
Client.onReady(function () { if (!Client.getUserInfo().isAtLeastAdmin) $location.path('/'); });
$scope.ready = false;
$scope.config = Client.getConfig();