mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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:
parent
14f5a27950
commit
3ba672f28a
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user