Adding check for user tutorial

This commit is contained in:
Anton Ignatov 2019-02-27 13:55:46 +01:00
parent 26f9c596e8
commit a6666c688c

View file

@ -488,7 +488,8 @@ class User < ApplicationRecord
# This method must be overwriten for addons that will be installed # This method must be overwriten for addons that will be installed
def show_login_system_notification? 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 end
# json friendly attributes # json friendly attributes