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:
Nathan Woodburn 2024-06-14 16:19:08 +10:00
parent ef40904945
commit 6eab11e168
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -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: