From 6eab11e168e53d8bd72df3f07694aa936c7f6d2c Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 14 Jun 2024 16:19:08 +1000 Subject: [PATCH] feat: Add admin access to see all clients --- website/routes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/routes.py b/website/routes.py index d0999a2..baf614d 100644 --- a/website/routes.py +++ b/website/routes.py @@ -60,6 +60,10 @@ def home(): user = current_user() if user: clients = OAuth2Client.query.filter_by(user_id=user.id).all() + + if user.id == 1: + clients = OAuth2Client.query.all() + if next_page: return redirect(next_page) else: