mirror of https://github.com/CIRCL/AIL-framework
chg: [user profile] show user organisation
parent
7bc2b16fd9
commit
503e30c04b
|
@ -585,7 +585,7 @@ def api_get_users_meta():
|
|||
return meta
|
||||
|
||||
def api_get_user_profile(user_id):
|
||||
options = {'api_key', 'role', '2fa', 'org'}
|
||||
options = {'api_key', 'role', '2fa', 'org', 'org_name'}
|
||||
user = AILUser(user_id)
|
||||
if not user.exists():
|
||||
return {'status': 'error', 'reason': 'User not found'}, 404
|
||||
|
|
|
@ -43,6 +43,13 @@
|
|||
<td>Email</td>
|
||||
<td>{{meta['id']}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Organisation</td>
|
||||
<td>
|
||||
{{meta['org_name']}}<br>
|
||||
{{meta['org']}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Role</td>
|
||||
<td>{{meta['role']}}</td>
|
||||
|
|
Loading…
Reference in New Issue