Merge branch '15028-fix-tests' refs #15028
[arvados.git] / services / api / app / models / user.rb
index 989a975924c1bedaa143b75fea3ca830157118d2..fc5ae0a49db5b2fb05036a0587759d92378358cf 100644 (file)
@@ -580,7 +580,7 @@ class User < ArvadosModel
     if self.prefs_changed?
       if self.prefs_was.andand.empty? || !self.prefs_was.andand['profile']
         profile_notification_address = Rails.configuration.Users.UserProfileNotificationAddress
-        ProfileNotifier.profile_created(self, profile_notification_address).deliver_now if profile_notification_address
+        ProfileNotifier.profile_created(self, profile_notification_address).deliver_now if profile_notification_address and !profile_notification_address.empty?
       end
     end
   end