Merge pull request #837 from warpc/file-store-12-add_role

[file-store-12] add role to current user
This commit is contained in:
Vladimir Sharshov 2013-01-17 10:49:30 -08:00
commit a52d990b56
1 changed files with 1 additions and 0 deletions

View File

@ -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