Fix bug in displaying users when there is an archived user
This commit is contained in:
parent
0860a93e84
commit
8e94402282
3 changed files with 9 additions and 1 deletions
|
@ -69,6 +69,10 @@ Issues
|
|||
Changes
|
||||
-------
|
||||
|
||||
### v0.43-quota-0.22-beta
|
||||
|
||||
* Fix bug that crashed user list when there is an archived user.
|
||||
|
||||
### v0.43-quota-0.21-beta
|
||||
|
||||
* Remove extra features from the master branch
|
||||
|
|
|
@ -198,6 +198,10 @@ def get_mail_users_ex(env, with_archived=False):
|
|||
"privileges": [],
|
||||
"status": "inactive",
|
||||
"mailbox": mbox,
|
||||
"box_count": '?',
|
||||
"box_size": '?',
|
||||
"box_quota": '?',
|
||||
"percent": '?',
|
||||
}
|
||||
users.append(user)
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ if [ -z "$TAG" ]; then
|
|||
# want to display in status checks.
|
||||
if [ "`lsb_release -d | sed 's/.*:\s*//' | sed 's/18\.04\.[0-9]/18.04/' `" == "Ubuntu 18.04 LTS" ]; then
|
||||
# This machine is running Ubuntu 18.04.
|
||||
TAG=v0.43-quota-0.21-beta
|
||||
TAG=v0.43-quota-0.22-beta
|
||||
|
||||
elif [ "`lsb_release -d | sed 's/.*:\s*//' | sed 's/14\.04\.[0-9]/14.04/' `" == "Ubuntu 14.04 LTS" ]; then
|
||||
# This machine is running Ubuntu 14.04.
|
||||
|
|
Loading…
Reference in a new issue