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()
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user