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,6 +616,8 @@ def user_info(username):
|
|||
if service_status("dovecot")["status"] != "running":
|
||||
logger.warning(m18n.n("mailbox_used_space_dovecot_down"))
|
||||
elif username not in user_permission_info("mail.main")["corresponding_users"]:
|
||||
# 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:
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue