feat: Add admin access to see all clients
All checks were successful
Build Docker / Build Docker (push) Successful in 27s

This commit is contained in:
2024-06-14 16:19:08 +10:00
parent ef40904945
commit 6eab11e168

View File

@@ -60,6 +60,10 @@ def home():
user = current_user() user = current_user()
if user: if user:
clients = OAuth2Client.query.filter_by(user_id=user.id).all() clients = OAuth2Client.query.filter_by(user_id=user.id).all()
if user.id == 1:
clients = OAuth2Client.query.all()
if next_page: if next_page:
return redirect(next_page) return redirect(next_page)
else: else: