Use isAtleastOwner instead of role directly

This commit is contained in:
Girish Ramakrishnan
2021-12-02 09:32:02 -08:00
parent 2c5b3d2c07
commit 6617ecb114
6 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ angular.module('Application').controller('NetworkController', ['$scope', '$locat
$scope.sysinfo.refresh();
$scope.dyndnsConfigure.refresh();
if ($scope.user.role === 'owner') $scope.blocklist.refresh();
if ($scope.user.isAtleastOwner) $scope.blocklist.refresh();
});
$('.modal-backdrop').remove();