fixes #5004
Merge pull request #5018 from dotCMS/issue-5004-multiple-security-failure

fixes #5004