feat: separate prior records behind an owner switch and count last-period questions
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -96,6 +96,21 @@ export class UsersController {
|
||||
);
|
||||
}
|
||||
|
||||
@Patch(':id/prior-archive')
|
||||
@Roles('owner')
|
||||
updatePriorArchive(
|
||||
@CurrentUser() user: { organizationId: string; role: UserRole },
|
||||
@Param('id') id: string,
|
||||
@Body() body: { enabled?: boolean },
|
||||
) {
|
||||
return this.usersService.updatePriorArchive(
|
||||
user.organizationId,
|
||||
user.role,
|
||||
id,
|
||||
body.enabled === true,
|
||||
);
|
||||
}
|
||||
|
||||
@Patch(':id/visibility')
|
||||
@Roles('owner', 'admin')
|
||||
updateVisibility(
|
||||
|
||||
Reference in New Issue
Block a user