Only return full data for admin users

This commit is contained in:
rijkvanzanten
2020-12-21 15:23:26 -05:00
parent 9974cb6050
commit 809f9bc09b

View File

@@ -116,7 +116,11 @@ export class ServerService {
if (data.status === 'error') break;
}
return data;
if (this.accountability?.admin !== true) {
return { status: data.status };
} else {
return data;
}
async function testDatabase(): Promise<Record<string, HealthCheck[]>> {
const client = env.DB_CLIENT;