mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-73: Clear permission cache when saving or updating to force permission reload.
This commit is contained in:
@@ -145,6 +145,10 @@ angular.module('rest').factory('connectionGroupService', ['$injector',
|
|||||||
.success(function connectionGroupCreated(newConnectionGroup){
|
.success(function connectionGroupCreated(newConnectionGroup){
|
||||||
connectionGroup.identifier = newConnectionGroup.identifier;
|
connectionGroup.identifier = newConnectionGroup.identifier;
|
||||||
cacheService.connections.removeAll();
|
cacheService.connections.removeAll();
|
||||||
|
|
||||||
|
// Clear users cache to force reload of permissions for this
|
||||||
|
// newly created connection group
|
||||||
|
cacheService.users.removeAll();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -160,6 +164,10 @@ angular.module('rest').factory('connectionGroupService', ['$injector',
|
|||||||
// Clear the cache
|
// Clear the cache
|
||||||
.success(function connectionGroupUpdated(){
|
.success(function connectionGroupUpdated(){
|
||||||
cacheService.connections.removeAll();
|
cacheService.connections.removeAll();
|
||||||
|
|
||||||
|
// Clear users cache to force reload of permissions for this
|
||||||
|
// newly updated connection group
|
||||||
|
cacheService.users.removeAll();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -152,6 +152,10 @@ angular.module('rest').factory('connectionService', ['$injector',
|
|||||||
.success(function connectionCreated(newConnection){
|
.success(function connectionCreated(newConnection){
|
||||||
connection.identifier = newConnection.identifier;
|
connection.identifier = newConnection.identifier;
|
||||||
cacheService.connections.removeAll();
|
cacheService.connections.removeAll();
|
||||||
|
|
||||||
|
// Clear users cache to force reload of permissions for this
|
||||||
|
// newly created connection
|
||||||
|
cacheService.users.removeAll();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,6 +171,10 @@ angular.module('rest').factory('connectionService', ['$injector',
|
|||||||
// Clear the cache
|
// Clear the cache
|
||||||
.success(function connectionUpdated(){
|
.success(function connectionUpdated(){
|
||||||
cacheService.connections.removeAll();
|
cacheService.connections.removeAll();
|
||||||
|
|
||||||
|
// Clear users cache to force reload of permissions for this
|
||||||
|
// newly updated connection
|
||||||
|
cacheService.users.removeAll();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -127,6 +127,10 @@ angular.module('rest').factory('sharingProfileService', ['$injector',
|
|||||||
.success(function sharingProfileCreated(newSharingProfile){
|
.success(function sharingProfileCreated(newSharingProfile){
|
||||||
sharingProfile.identifier = newSharingProfile.identifier;
|
sharingProfile.identifier = newSharingProfile.identifier;
|
||||||
cacheService.connections.removeAll();
|
cacheService.connections.removeAll();
|
||||||
|
|
||||||
|
// Clear users cache to force reload of permissions for this
|
||||||
|
// newly created sharing profile
|
||||||
|
cacheService.users.removeAll();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -142,6 +146,10 @@ angular.module('rest').factory('sharingProfileService', ['$injector',
|
|||||||
// Clear the cache
|
// Clear the cache
|
||||||
.success(function sharingProfileUpdated(){
|
.success(function sharingProfileUpdated(){
|
||||||
cacheService.connections.removeAll();
|
cacheService.connections.removeAll();
|
||||||
|
|
||||||
|
// Clear users cache to force reload of permissions for this
|
||||||
|
// newly updated sharing profile
|
||||||
|
cacheService.users.removeAll();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user