|
@@ -24,7 +24,7 @@ angular.module('luticateUtils')
|
24
|
24
|
$scope.editPermission = function(permission, value)
|
25
|
25
|
{
|
26
|
26
|
var promiseEditPermission = {
|
27
|
|
- id: "promiseEditPermission_" + permission.Name + "_" + $scope.$id,
|
|
27
|
+ id: "promiseEditPermission_" + permission.Name,
|
28
|
28
|
loaderGroups: ['permission_' + permission.Name]
|
29
|
29
|
};
|
30
|
30
|
luModel.getEditPermissionPromise(permission.Name, value, promiseEditPermission)
|
|
@@ -37,7 +37,7 @@ angular.module('luticateUtils')
|
37
|
37
|
$scope.delPermission = function(permission)
|
38
|
38
|
{
|
39
|
39
|
var promiseDelPermission = {
|
40
|
|
- id: "promiseDelPermission_" + permission.Name + "_" + $scope.$id,
|
|
40
|
+ id: "promiseDelPermission_" + permission.Name,
|
41
|
41
|
loaderGroups: ['permission_' + permission.Name]
|
42
|
42
|
};
|
43
|
43
|
luModel.getDelPermissionPromise(permission.Name, promiseDelPermission)
|
|
@@ -50,7 +50,7 @@ angular.module('luticateUtils')
|
50
|
50
|
$scope.addPermission = function(permission)
|
51
|
51
|
{
|
52
|
52
|
var promiseAddPermission = {
|
53
|
|
- id: "promiseAddPermission_" + permission.Name + "_" + $scope.$id,
|
|
53
|
+ id: "promiseAddPermission_" + permission.Name,
|
54
|
54
|
loaderGroups: ['permission_add']
|
55
|
55
|
};
|
56
|
56
|
luModel.getAddPermissionPromise(permission.Name, permission.Value, promiseAddPermission)
|
|
@@ -63,7 +63,7 @@ angular.module('luticateUtils')
|
63
|
63
|
$scope.loadPermissions = function() {
|
64
|
64
|
|
65
|
65
|
var promiseLoadPermissions = {
|
66
|
|
- id: "promiseLoadPermissions_" + $scope.$id,
|
|
66
|
+ id: "promiseLoadPermissions_",
|
67
|
67
|
groups: ['permissionList']
|
68
|
68
|
};
|
69
|
69
|
luModel.getGetAllPromise(null, null, promiseLoadPermissions)
|
|
@@ -75,7 +75,7 @@ angular.module('luticateUtils')
|
75
|
75
|
$scope.loadAllPermissions = function() {
|
76
|
76
|
|
77
|
77
|
var promiseLoadAllPermissions = {
|
78
|
|
- id: "promiseLoadAllPermissions_" + $scope.$id,
|
|
78
|
+ id: "promiseLoadAllPermissions",
|
79
|
79
|
groups: ['permission_add']
|
80
|
80
|
};
|
81
|
81
|
luticateAuthPermissions.getAll(null, promiseLoadAllPermissions)
|