10078: add configuration parameter to suppress display of user notifications to impro...
[arvados.git] / apps / workbench / app / controllers / application_controller.rb
index 3886d1c7632806476a3c7ad9d9323a935276850c..c6148ca544befd57c44a1549511b038d5d57ceec 100644 (file)
@@ -769,7 +769,7 @@ class ApplicationController < ActionController::Base
 
   helper_method :user_notifications
   def user_notifications
-    return [] if @errors or not current_user.andand.is_active
+    return [] if @errors or not current_user.andand.is_active or not Rails.configuration.show_user_notifications_in_dashboard
     @notifications ||= @@notification_tests.map do |t|
       t.call(self, current_user)
     end.compact