fix: live query role cache does not clear when a user is added to a role (#8026)
This commit is contained in:
@@ -1326,6 +1326,9 @@ RestWrite.prototype.runDatabaseOperation = function () {
|
||||
|
||||
if (this.className === '_Role') {
|
||||
this.config.cacheController.role.clear();
|
||||
if (this.config.liveQueryController) {
|
||||
this.config.liveQueryController.clearCachedRoles(this.auth.user);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.className === '_User' && this.query && this.auth.isUnauthenticated()) {
|
||||
|
||||
Reference in New Issue
Block a user