From 3ba672f28ab0d11052dca1976934e6d9cfad2309 Mon Sep 17 00:00:00 2001 From: Johannes Keyser Date: Thu, 31 Aug 2017 16:10:04 +0200 Subject: [PATCH] disks: enabled caching for check-if-admin during check for low space Signed-off-by: Johannes Keyser --- plinth/modules/disks/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/disks/views.py b/plinth/modules/disks/views.py index debf44ef1..9352bc9c8 100644 --- a/plinth/modules/disks/views.py +++ b/plinth/modules/disks/views.py @@ -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()