3296: good tests do add value.
[arvados.git] / apps / workbench / app / controllers / application_controller.rb
index cd74dffdfdbfea66183f730b81cf8bec90094b81..0593ee38dc66e66d1bb59508f5456ebced04d35d 100644 (file)
@@ -536,7 +536,9 @@ class ApplicationController < ActionController::Base
 
       profile_config.kind_of?(Array) && profile_config.andand.each do |entry|
         if entry['required']
-          if !current_user_profile || !current_user_profile[entry['key'].to_sym]
+          if !current_user_profile ||
+             !current_user_profile[entry['key'].to_sym] ||
+             current_user_profile[entry['key'].to_sym].empty?
             missing_required_profile = true
             break
           end