feat: lint

This commit is contained in:
shinya
2025-08-21 21:31:53 +08:00
parent b27f04201f
commit 1484b1edae
3 changed files with 5 additions and 11 deletions

View File

@@ -104,7 +104,7 @@ export async function POST(request: NextRequest) {
if (
targetEntry &&
targetEntry.role === 'owner' &&
action !== 'changePassword'
!['changePassword', 'updateUserApis', 'updateUserGroups'].includes(action)
) {
return NextResponse.json({ error: '无法操作站长' }, { status: 400 });
}