Skip to content

Commit

Permalink
Fixing issue #12.
Browse files Browse the repository at this point in the history
  • Loading branch information
Macmod committed Sep 10, 2024
1 parent 7ad831a commit acaf0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tui/ace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit acaf0bf

Please sign in to comment.