diff --git a/tui/ace.go b/tui/ace.go index b1c39ad..71a6014 100644 --- a/tui/ace.go +++ b/tui/ace.go @@ -470,7 +470,7 @@ func loadAceEditorForm(aceIdx int) { object := objectNameInputDacl.GetText() // Initial values - if aceIdx > 0 && aceIdx < len(parsedAces) { + if aceIdx > 0 && aceIdx-1 < len(parsedAces) { aceEntry := parsedAces[aceIdx-1] if aceEntry.Inheritance { updateLog("Inherited ACEs cannot be edited.", "red")