Fix unauthorized on non-published folders.