3114: When current user, show root/home project rather than user attributes when...
[arvados.git] / apps / workbench / app / controllers / users_controller.rb
index 67b51a9bc9d043513c82fb6d8b2145a4f0462e68..d817b32711fe5d7695a642343a442cd4c394c73e 100644 (file)
@@ -2,6 +2,14 @@ class UsersController < ApplicationController
   skip_before_filter :find_object_by_uuid, :only => [:welcome, :activity, :storage]
   before_filter :ensure_current_user_is_admin, only: [:sudo, :unsetup, :setup]
 
+  def show
+    if params[:uuid] == current_user.uuid
+      redirect_to project_path(params[:uuid])
+    else
+      super
+    end
+  end
+
   def welcome
     if current_user
       params[:action] = 'home'