reserve bounce, bounces as directory name

This commit is contained in:
Son NK 2021-01-11 14:32:48 +01:00
parent 2cc7f5ac13
commit 45ac548e2b
1 changed files with 2 additions and 2 deletions

View File

@ -120,9 +120,9 @@ def directory():
if Directory.get_by(name=new_dir_name):
flash(f"{new_dir_name} already added", "warning")
elif new_dir_name in ("reply", "ra"):
elif new_dir_name in ("reply", "ra", "bounces", "bounce"):
flash(
"directory name cannot be *reply* or *ra*, please choose another name",
"this directory name is reserved, please choose another name",
"warning",
)
else: