fix mail_admin user

This commit is contained in:
deflax 2024-04-01 19:38:59 +03:00
parent 1ad46cbdc4
commit e04867064e

View file

@ -87,7 +87,7 @@ class User(db.Model, UserMixin):
super(User, self).__init__(**kwargs)
if self.role is None:
if self.email == current_app.config['ADMIN_EMAIL']:
if self.email == current_app.config['MAIL_ADMIN']:
#if email match config admin name create admin user
self.role = Role.query.filter_by(permissions=0xff).first()
if self.role is None: