mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-11 17:36:13 +08:00
Adding check for user tutorial
This commit is contained in:
parent
26f9c596e8
commit
a6666c688c
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue