Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy committed May 5, 2023
1 parent a02012b commit b4a4ef9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/casl-mongoose/src/accessible_records.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ function queryAccessibleBy(
return accessibleBy(this, ability, action);
}

/** useful description about nothing */
export function accessibleRecordsPlugin(schema: Schema<any>): void {
(schema.query as Record<string, unknown>).accessibleBy = queryAccessibleBy;
schema.statics.accessibleBy = modelAccessibleBy;
Expand Down

0 comments on commit b4a4ef9

Please sign in to comment.