fix: let only the owner set logout time and move the attendance tab
This commit is contained in:
@@ -68,7 +68,7 @@ export class UsersController {
|
||||
}
|
||||
|
||||
@Patch(':id/logout-time')
|
||||
@Roles('owner', 'admin')
|
||||
@Roles('owner')
|
||||
updateLogoutTime(
|
||||
@CurrentUser() user: { organizationId: string; role: UserRole },
|
||||
@Param('id') id: string,
|
||||
|
||||
Reference in New Issue
Block a user