Merge pull request #1531 from aignatov-bio/ai-sci-3095-notification-bug-on-signup

First what's up notification user gets already at signup [SCI-3095]
This commit is contained in:
aignatov-bio 2019-02-27 15:42:20 +01:00 committed by GitHub
commit 7ced0b367b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -488,7 +488,8 @@ class User < ApplicationRecord
# This method must be overwriten for addons that will be installed
def show_login_system_notification?
user_system_notifications.show_on_login.present?
user_system_notifications.show_on_login.present? &&
(ENV['ENABLE_TUTORIAL'] != 'true' || settings['tutorial_completed'])
end
# json friendly attributes