use warning when user is out of quota

This commit is contained in:
Son NK 2020-07-15 19:14:37 +02:00
parent 8f17cda794
commit 515b3510a8
1 changed files with 1 additions and 2 deletions

View File

@ -50,8 +50,7 @@ def available_suffixes(user: User) -> [bool, str, str]:
def custom_alias():
# check if user has not exceeded the alias quota
if not current_user.can_create_new_alias():
# notify admin
LOG.error("user %s tries to create custom alias", current_user)
LOG.warning("user %s tries to create custom alias", current_user)
flash(
"You have reached free plan limit, please upgrade to create new aliases",
"warning",