From b7e5d9f71aadf42f34b1ac25377a02ad22b535b7 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Wed, 6 Mar 2024 16:58:51 +0000 Subject: [PATCH] Sync all roles on any role change. --- packages/server/src/api/controllers/role.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/role.ts b/packages/server/src/api/controllers/role.ts index 84179d8dbc..2f5340d2e6 100644 --- a/packages/server/src/api/controllers/role.ts +++ b/packages/server/src/api/controllers/role.ts @@ -117,7 +117,7 @@ export async function save(ctx: UserCtx) { }) await replication.replicate({ filter: (doc: any, params: any) => { - return doc._id === _id + return doc._id && doc._id.startsWith("role_") }, }) }