From 525a30c47110a2ec23c90b1b7eb34f2d79fcf8e6 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 16 Jan 2013 15:54:17 +0600 Subject: [PATCH] [file-store-12] add role to current user --- app/views/api/v1/users/show.json.jbuilder | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/api/v1/users/show.json.jbuilder b/app/views/api/v1/users/show.json.jbuilder index ff20c6f3b..15e4ed892 100644 --- a/app/views/api/v1/users/show.json.jbuilder +++ b/app/views/api/v1/users/show.json.jbuilder @@ -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 \ No newline at end of file