fix mail_admin user
This commit is contained in:
parent
1ad46cbdc4
commit
e04867064e
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ class User(db.Model, UserMixin):
|
||||||
super(User, self).__init__(**kwargs)
|
super(User, self).__init__(**kwargs)
|
||||||
|
|
||||||
if self.role is None:
|
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
|
#if email match config admin name create admin user
|
||||||
self.role = Role.query.filter_by(permissions=0xff).first()
|
self.role = Role.query.filter_by(permissions=0xff).first()
|
||||||
if self.role is None:
|
if self.role is None:
|
||||||
|
|
Loading…
Reference in a new issue