inventoryStore: invert writeability terms to readonly

This commit is contained in:
Johannes Kirschbauer
2025-10-16 12:57:02 +02:00
parent 5eb6b703f0
commit 892cb1baae
3 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ def validate_no_static_deletion(
raise ClanError(msg)
def validate_writeability(path: PathTuple, writeables: AttributeMap) -> None:
def validate_not_readonly(path: PathTuple, writeables: AttributeMap) -> None:
"""Validate that a path is writeable."""
if not is_writeable_path(path, writeables):
msg = f"Path '{path_to_string(path)}' is readonly. - It seems its value is statically defined in nix."