|
|
@@ -10008,7 +10008,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
}]);
|
|
|
|
|
|
- app.controller('UserCtrl', ['$scope', '$filter', 'AuthenticationService', 'AccountUser', 'BaseService', 'ngTableParams', 'toaster', '$modal', '$http', 'ngAlert', 'AccountEnterprise', function ($scope, $filter, AuthenticationService, AccountUser, BaseService, ngTableParams, toaster, $modal, $http, ngAlert, AccountEnterprise) {
|
|
|
+ app.controller('UserCtrl', ['$scope', '$filter', 'AuthenticationService', 'AccountUser', 'BaseService', 'ngTableParams', 'toaster', '$modal', '$http', 'ngAlert', 'AccountEnterprise', 'CurrentRole', function ($scope, $filter, AuthenticationService, AccountUser, BaseService, ngTableParams, toaster, $modal, $http, ngAlert, AccountEnterprise, CurrentRole) {
|
|
|
BaseService.scrollBackToTop();
|
|
|
$scope.editing = false;
|
|
|
$scope.loading = true;
|
|
|
@@ -10025,6 +10025,14 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.user = data;
|
|
|
});
|
|
|
var users = [];
|
|
|
+
|
|
|
+ var getMangagerInfo = function() {
|
|
|
+ CurrentRole.isManager({}, function(data) {
|
|
|
+ $scope.isManager = data.isManager;
|
|
|
+ });
|
|
|
+ };
|
|
|
+ getMangagerInfo();
|
|
|
+
|
|
|
$scope.tableParams = new ngTableParams({
|
|
|
page: 1,
|
|
|
count: 20,
|