X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7ced789760c7e7b4df4fe3ddecf0611ff1fe12e5..0eb72b526bf8bbb011551ecf019f604e17a534f1:/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 23795d3f04..8403ee0b4f 100644 --- a/apps/workbench/app/views/application/_show_sharing.html.erb +++ b/apps/workbench/app/views/application/_show_sharing.html.erb @@ -1,3 +1,7 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <% uuid_map = {} if @share_links @@ -22,6 +26,15 @@ choose_filters = { "groups" => [["group_class", "=", "role"]], } + if not Rails.configuration.anonymous_user_token + # 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 + # server's UUID prefix. And we can't say "uuid not like + # %-anonymouspublic", because the API server doesn't support a + # "not like" filter. + choose_filters["groups"] << ["name", "!=", "Anonymous users"] + end choose_filters.default = [] owner_icon = fa_icon_class_for_uuid(@object.owner_uuid) if owner_icon == "fa-users" @@ -39,6 +52,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, @@ -59,6 +73,12 @@ <%= link_to_if_arvados_object @object.owner_uuid, friendly_name: true %>.

+<% if @object.is_a? Repository %> +

+ Please note that changes to git repository sharing may take up to two minutes to take effect. +

+<% end %> +
User/Group Name