fix: live query role cache does not clear when a user is added to a role (#8026)

This commit is contained in:
dblythy
2022-06-11 18:21:55 +10:00
committed by GitHub
parent 0cd902b8c2
commit 199dfc1722
6 changed files with 108 additions and 2 deletions

View File

@@ -56,6 +56,13 @@ export class LiveQueryController {
return false;
}
clearCachedRoles(user: any) {
if (!user) {
return;
}
return this.liveQueryPublisher.onClearCachedRoles(user);
}
_makePublisherRequest(currentObject: any, originalObject: any, classLevelPermissions: ?any): any {
const req = {
object: currentObject,