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_") }, }) }