remove buggy check_storage_perm