Merge pull request #23579 from 11rx4f/23578

Fix #23578 Cannot enbale Security Manager from the admin console