diff --git a/Overlord-Server/src/db.ts b/Overlord-Server/src/db.ts index 9f63129..649d155 100644 --- a/Overlord-Server/src/db.ts +++ b/Overlord-Server/src/db.ts @@ -652,7 +652,7 @@ export function getBuildByTag(buildTag: string): BuildRecord | null { } export function getAllBuilds(userId?: number, role?: string): BuildRecord[] { - if (role !== "admin") { + if (role !== undefined && role !== "admin") { if (userId == null) { return []; }