X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/da51b9328abab2df757ed13eadc7c3557315094b..a329f06e31462d59d853838beffd077ce732d631:/apps/workbench/app/controllers/repositories_controller.rb diff --git a/apps/workbench/app/controllers/repositories_controller.rb b/apps/workbench/app/controllers/repositories_controller.rb index b6b3295ef8..d32c92a1e7 100644 --- a/apps/workbench/app/controllers/repositories_controller.rb +++ b/apps/workbench/app/controllers/repositories_controller.rb @@ -1,5 +1,19 @@ class RepositoriesController < ApplicationController + before_filter :set_share_links, if: -> { defined? @object } + def index_pane_list %w(recent help) end + + def show_pane_list + if @user_is_manager + panes = super | %w(Sharing) + panes.insert(panes.length-1, panes.delete_at(panes.index('Advanced'))) if panes.index('Advanced') + panes + else + panes = super + end + panes.delete('Attributes') if !current_user.is_admin + panes + end end