Row-level security class with static methods. Provides the same functionality as the RLS object but as class methods.
RowLevelSecurity.init(); RowLevelSecurity.apply(Document, ctx => ({ where: { tenantId: ctx.tenantId } })); RowLevelSecurity.remove(Document); RowLevelSecurity.getFilteredQuery(Document);
Static
Row-level security class with static methods. Provides the same functionality as the RLS object but as class methods.
RowLevelSecurity.init(); RowLevelSecurity.apply(Document, ctx => ({ where: { tenantId: ctx.tenantId } })); RowLevelSecurity.remove(Document); RowLevelSecurity.getFilteredQuery(Document);