mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Requality warning about "disabled mail perm for user" as debug
This commit is contained in:
parent
224a15492e
commit
c8ae9f424b
1 changed files with 1 additions and 3 deletions
|
@ -616,9 +616,7 @@ def user_info(username):
|
||||||
if service_status("dovecot")["status"] != "running":
|
if service_status("dovecot")["status"] != "running":
|
||||||
logger.warning(m18n.n("mailbox_used_space_dovecot_down"))
|
logger.warning(m18n.n("mailbox_used_space_dovecot_down"))
|
||||||
elif username not in user_permission_info("mail.main")["corresponding_users"]:
|
elif username not in user_permission_info("mail.main")["corresponding_users"]:
|
||||||
# Only warn that mailbox is disabled when the user is an admin
|
logger.debug(m18n.n("mailbox_disabled", user=username))
|
||||||
if username in user_group_info("admins")["members"]:
|
|
||||||
logger.warning(m18n.n("mailbox_disabled", user=username))
|
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
uid_ = user["uid"][0]
|
uid_ = user["uid"][0]
|
||||||
|
|
Loading…
Add table
Reference in a new issue