X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1fea1b7a0f75765268dc1c461725c8ca841d4b57..0dab89df8040f203a33bc1922df0ff893791def7:/apps/workbench/app/views/application/_show_sharing.html.erb diff --git a/apps/workbench/app/views/application/_show_sharing.html.erb b/apps/workbench/app/views/application/_show_sharing.html.erb index 21d6521051..75773ab900 100644 --- a/apps/workbench/app/views/application/_show_sharing.html.erb +++ b/apps/workbench/app/views/application/_show_sharing.html.erb @@ -1,9 +1,15 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <% uuid_map = {} if @share_links [User, Group].each do |type| type .filter([['uuid','in',@share_links.collect(&:tail_uuid)]]) + .with_count("none") + .fetch_multiple_pages(false) .each do |o| uuid_map[o.uuid] = o end @@ -22,7 +28,7 @@ choose_filters = { "groups" => [["group_class", "=", "role"]], } - if not Rails.configuration.anonymous_user_token + if Rails.configuration.Users.AnonymousUserToken.empty? # It would be ideal to filter out the anonymous group by UUID, # but that's not readily doable. Workbench can't generate the # UUID for a != filter, because it can't introspect the API @@ -48,6 +54,7 @@ <%= link_to(send("choose_#{share_class}_path", title: "Share with #{share_class}", + message: "Only #{share_class} you are allowed to access are shown. Please contact your administrator if you need to be added to a specific group.", by_project: false, preview_pane: false, multiple: true,