Only show the "protected" checkbox for folders (see #5660)