Migrate most of .admin usage

This commit is contained in:
Johannes Zellner
2020-02-24 12:56:13 +01:00
parent 3c0e674ee5
commit 0e6c9177f0
16 changed files with 27 additions and 23 deletions
+1 -2
View File
@@ -7,7 +7,7 @@
/* global $:false */
angular.module('Application').controller('UsersController', ['$scope', '$location', '$timeout', 'Client', function ($scope, $location, $timeout, Client) {
Client.onReady(function () { if (!Client.getUserInfo().admin) $location.path('/'); });
Client.onReady(function () { if (!Client.getUserInfo().isAtLeastUserManager) $location.path('/'); });
$scope.ldapProvider = [
{ name: 'Active Directory', value: 'ad' },
@@ -97,7 +97,6 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
$scope.useradd.selectedGroups = [];
$scope.useradd.admin = false;
$scope.useradd.role = 'user';
console.log($scope.useradd.role)
$scope.useradd_form.$setUntouched();
$scope.useradd_form.$setPristine();