Change klippy window behavour, Fix user management behavour, clean up search server page
This commit is contained in:
@@ -12,5 +12,5 @@ export async function handleIsUserBanned(query: IsUserBannedQuery, dataSource: D
|
||||
.andWhere('(ban.expiresAt IS NULL OR ban.expiresAt > :now)', { now })
|
||||
.getMany();
|
||||
|
||||
return rows.some((row) => row.oderId === userId);
|
||||
return rows.some((row) => row.userId === userId || (!row.userId && row.oderId === userId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user