2659: (1) Update link_to_if_arvados_object method to display an object name as link...
[arvados.git] / apps / workbench / app / helpers / application_helper.rb
index 11c55c3f77bed497566b124c34d6bb69c6d0ee0a..a6e63160135f6d203b18555d136ff82579564b05 100644 (file)
@@ -133,7 +133,7 @@ module ApplicationHelper
         end
       end
       style_opts[:class] = (style_opts[:class] || '') + ' nowrap'
-      if opts[:no_link]
+      if opts[:no_link] or (resource_class == User && !current_user.is_active)
         raw(link_name)
       else
         (link_to raw(link_name), { controller: resource_class.to_s.tableize, action: 'show', id: ((opts[:name_link].andand.uuid) || link_uuid) }, style_opts) + raw(tags)