disks: enabled caching for check-if-admin during check for low space

Signed-off-by: Johannes Keyser <johanneskeyser@posteo.de>
This commit is contained in:
Johannes Keyser 2017-08-31 16:10:04 +02:00
parent 14f5a27950
commit 3ba672f28a
No known key found for this signature in database
GPG Key ID: D1431C2C533CF0D0

View File

@ -76,7 +76,7 @@ def expand_partition(request, device):
def warn_about_low_disk_space(request):
"""Warn about insufficient space on root partition."""
if not is_user_admin(request):
if not is_user_admin(request, cached=True):
return
disks = disks_module.get_disks()