Display the correct Direct Connections value in Duo admin page
What does this MR do and why?
The Duo admin page (<gitlab_url>/admin/gitlab_duo) is displaying the inverse value of the "Direct Connections" status. IE, if "Direct Connections" is enabled, the admin page shows "Not enabled" and vice versa.
The change in this MR ensures that the Duo admin page is displaying the correct "Direct Connections" status
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before
See screenshots in issue GitLab Duo overview in admin area is always wro... (#510766 - closed)
After
Direct Connections enabled
Direct Connections disabled
How to set up and validate locally
-
As the admin user (
root), go to the Duo Admin pageNavigate to Admin Area -> GitLab Duo or
<gitlab_url>/admin/gitlab_duo -
Confirm that "Direct Connections" status is displayed correctly. (See screenshots above.)
Related to #510766 (closed)

