Fixes #4991 CLI allowed when walled garden is turned on