Fix bug in displaying users when there is an archived user
This commit is contained in:
parent
0860a93e84
commit
8e94402282
|
@ -69,6 +69,10 @@ Issues
|
||||||
Changes
|
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
|
### v0.43-quota-0.21-beta
|
||||||
|
|
||||||
* Remove extra features from the master branch
|
* Remove extra features from the master branch
|
||||||
|
|
|
@ -198,6 +198,10 @@ def get_mail_users_ex(env, with_archived=False):
|
||||||
"privileges": [],
|
"privileges": [],
|
||||||
"status": "inactive",
|
"status": "inactive",
|
||||||
"mailbox": mbox,
|
"mailbox": mbox,
|
||||||
|
"box_count": '?',
|
||||||
|
"box_size": '?',
|
||||||
|
"box_quota": '?',
|
||||||
|
"percent": '?',
|
||||||
}
|
}
|
||||||
users.append(user)
|
users.append(user)
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ if [ -z "$TAG" ]; then
|
||||||
# want to display in status checks.
|
# 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
|
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.
|
# 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
|
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.
|
# This machine is running Ubuntu 14.04.
|
||||||
|
|
Loading…
Reference in New Issue