Skip to content

Commit

Permalink
Merge pull request #694 from cabinetoffice/feature/DP-627-hide-suppor…
Browse files Browse the repository at this point in the history
…t-tab

Ensure only SUPPORTADMIN can see Support link.
  • Loading branch information
rmohammed-goaco authored Oct 3, 2024
2 parents 7e5db78 + b177ed7 commit 8427f53
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Frontend/CO.CDP.OrganisationApp/Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,20 @@
{
var ftsService = config["FtsService"] ?? "";
var showMyNotice = !string.IsNullOrEmpty(ftsService);
var isSupportAdmin = true; // TODO: Add logic to determine if signed in user is a super user

<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/organisation-selection">
Dashboard
</a>
</li>

if (isSupportAdmin == true)
{
<authorize scope="@PersonScopeRequirement.SupportAdmin">
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/support/organisations/buyer">
Support
</a>
</li>
}
</authorize>

if (showMyNotice == true)
{
Expand Down

0 comments on commit 8427f53

Please sign in to comment.