Merge branch '19954-permission-dedup-doc'
[arvados.git] / apps / workbench / app / views / application / _arvados_attr_value.html.erb
index 52c46fbe2f9e0821fe8bbba8621814b6a4c05ce5..98732dc3bfad1c47e66176c85c33702be561f726 100644 (file)
@@ -1,9 +1,13 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
 <% if attrvalue.is_a? Array and attrvalue.collect(&:class).uniq.compact == [String] %>
   <% attrvalue.each do |message| %>
     <%= message %><br />
   <% end %>
 <% else %>
-      <% if obj.attribute_editable?(attr) and (!defined?(editable) || editable) %>
+      <% if attr and obj.attribute_editable?(attr) and (!defined?(editable) || editable) %>
         <% if resource_class_for_uuid(attrvalue, {referring_object: obj, referring_attr: attr}) %>
           <%= link_to_if_arvados_object attrvalue, {referring_attr: attr, referring_object: obj, with_class_name: true, friendly_name: true} %>
           <br>