[file-store-12] add role to current user
This commit is contained in:
parent
3dd553b2dd
commit
525a30c471
|
@ -5,4 +5,5 @@ json.user do |json|
|
|||
json.avatar_url avatar_url(@user,:big)
|
||||
json.url api_v1_user_path(@user.id, :format => :json)
|
||||
json.html_url user_path(@user.uname)
|
||||
json.(@user, :role) if action_name == 'show_current_user'
|
||||
end
|
Loading…
Reference in New Issue