X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cf6de2801c7e467230941cfee1d9227cc9932d7e..b20cc78fe133ad073edaa1f07effa90297015e99:/apps/workbench/app/controllers/projects_controller.rb diff --git a/apps/workbench/app/controllers/projects_controller.rb b/apps/workbench/app/controllers/projects_controller.rb index 2b605d3f83..bf1bc937e0 100644 --- a/apps/workbench/app/controllers/projects_controller.rb +++ b/apps/workbench/app/controllers/projects_controller.rb @@ -3,6 +3,31 @@ class ProjectsController < ApplicationController Group end + def find_object_by_uuid + if current_user and params[:uuid] == current_user.uuid + @object = current_user.dup + @object.uuid = current_user.uuid + class << @object + def name + 'Home' + end + def description + '' + end + def attribute_editable? attr, *args + case attr + when 'description', 'name' + false + else + super + end + end + end + else + super + end + end + def index_pane_list %w(Projects) end