Patch #13948 ยป rest-api-user-status.patch
| app/views/users/show.api.rsb | ||
|---|---|---|
| 7 | 7 |
api.created_on @user.created_on |
| 8 | 8 |
api.last_login_on @user.last_login_on |
| 9 | 9 |
api.api_key @user.api_key if User.current.admin? || (User.current == @user) |
| 10 |
api.status @user.status if User.current.admin? || (User.current == @user) |
|
| 10 | 11 | |
| 11 | 12 |
render_api_custom_values @user.visible_custom_field_values, api |
| 12 | 13 | |