Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only warn that mailbox is disabled for admins #1739

Merged
merged 2 commits into from
Dec 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Requality warning about "disabled mail perm for user" as debug
  • Loading branch information
alexAubin authored Dec 21, 2023
commit c8ae9f424b1872ccfc95636c6274ff1f4055238d
4 changes: 1 addition & 3 deletions src/user.py
Original file line number Diff line number Diff line change
@@ -616,9 +616,7 @@ 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))
logger.debug(m18n.n("mailbox_disabled", user=username))
else:
try:
uid_ = user["uid"][0]