Show More
@@ -779,7 +779,7 b' class User(Base, BaseModel):' | |||||
779 | def get_first_super_admin(cls): |
|
779 | def get_first_super_admin(cls): | |
780 | user = User.query().filter(User.admin == true()).first() |
|
780 | user = User.query().filter(User.admin == true()).first() | |
781 | if user is None: |
|
781 | if user is None: | |
782 | raise Exception('Missing administrative account!') |
|
782 | raise Exception('FATAL: Missing administrative account!') | |
783 | return user |
|
783 | return user | |
784 |
|
784 | |||
785 | @classmethod |
|
785 | @classmethod | |
@@ -794,7 +794,7 b' class User(Base, BaseModel):' | |||||
794 | def get_default_user(cls, cache=False): |
|
794 | def get_default_user(cls, cache=False): | |
795 | user = User.get_by_username(User.DEFAULT_USER, cache=cache) |
|
795 | user = User.get_by_username(User.DEFAULT_USER, cache=cache) | |
796 | if user is None: |
|
796 | if user is None: | |
797 | raise Exception('Missing default account!') |
|
797 | raise Exception('FATAL: Missing default account!') | |
798 | return user |
|
798 | return user | |
799 |
|
799 | |||
800 | def _get_default_perms(self, user, suffix=''): |
|
800 | def _get_default_perms(self, user, suffix=''): |
General Comments 0
You need to be logged in to leave comments.
Login now