X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/204c462041de0b063ed1169c0f600f082400815f..f102390c598ec819f31fdccc603f19c39eb9e1c8:/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..4b7beb3059 100644 --- a/apps/workbench/app/views/application/_show_sharing.html.erb +++ b/apps/workbench/app/views/application/_show_sharing.html.erb @@ -22,6 +22,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"