mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Only warn that mailbox is disabled for admins
This commit is contained in:
parent
f56f235705
commit
224a15492e
1 changed files with 3 additions and 1 deletions
|
@ -616,7 +616,9 @@ 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"]:
|
||||||
logger.warning(m18n.n("mailbox_disabled", user=username))
|
# Only warn that mailbox is disabled when the user is an admin
|
||||||
|
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