fixes #6266
Merge pull request #6277 from dotCMS/issue-6266-permissions-not-inheriting-from-subfolders

fixes #6266