Migrate most of .admin usage
This commit is contained in:
+1
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user