feat: Add admin access to see all clients
All checks were successful
Build Docker / Build Docker (push) Successful in 27s
All checks were successful
Build Docker / Build Docker (push) Successful in 27s
This commit is contained in:
parent
ef40904945
commit
6eab11e168
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user