mirror of
https://github.com/optim-enterprises-bv/Mailu.git
synced 2026-01-08 00:01:45 +00:00
Apply DEFAULT_QUOTA to user creation admin ui page
This commit is contained in:
@@ -27,6 +27,8 @@ def user_create(domain_name):
|
||||
if domain.max_quota_bytes:
|
||||
form.quota_bytes.validators = [
|
||||
wtforms.validators.NumberRange(max=domain.max_quota_bytes)]
|
||||
if form.quota_bytes.default > domain.max_quota_bytes:
|
||||
form.quota_bytes.default = domain.max_quota_bytes
|
||||
if form.validate_on_submit():
|
||||
if msg := utils.isBadOrPwned(form):
|
||||
flask.flash(msg, "error")
|
||||
|
||||
Reference in New Issue
Block a user