Merge pull request #837 from warpc/file-store-12-add_role
[file-store-12] add role to current user
This commit is contained in:
commit
a52d990b56
|
@ -5,4 +5,5 @@ json.user do |json|
|
||||||
json.avatar_url avatar_url(@user,:big)
|
json.avatar_url avatar_url(@user,:big)
|
||||||
json.url api_v1_user_path(@user.id, :format => :json)
|
json.url api_v1_user_path(@user.id, :format => :json)
|
||||||
json.html_url user_path(@user.uname)
|
json.html_url user_path(@user.uname)
|
||||||
|
json.(@user, :role) if action_name == 'show_current_user'
|
||||||
end
|
end
|
Loading…
Reference in New Issue