Add update user command (#21922)

* Add update user command

* Add is_admin to current user
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-03-11 12:08:02 -07:00
1 parent 5e2302e469
commit 8bfbe3e085
3 files changed
+102 -2

No files matched your search

@@ -459,6 +459,7 @@ async def websocket_current_user(
'id': user.id,
'name': user.name,
'is_owner': user.is_owner,
'is_admin': user.is_admin,
'credentials': [{'auth_provider_type': c.auth_provider_type,
'auth_provider_id': c.auth_provider_id}
for c in user.credentials],