From 931f8e9146cb3a45f4b4691806eda80f9a998861 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Tue, 23 Jan 2024 12:56:29 +0000 Subject: [PATCH] refactor: remove missed log.warning from organisations endpoint --- src/backend/app/organisations/organisation_crud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app/organisations/organisation_crud.py b/src/backend/app/organisations/organisation_crud.py index 551190f28c..8bc68eb080 100644 --- a/src/backend/app/organisations/organisation_crud.py +++ b/src/backend/app/organisations/organisation_crud.py @@ -40,7 +40,7 @@ async def get_organisations(db: Session, current_user: AuthUser, is_approved: bool): """Get all orgs.""" super_admin = await check_super_admin(db, current_user) - log.warning(super_admin) + if super_admin: return db.query(db_models.DbOrganisation).filter_by(approved=is_approved).all()