Skip to content

Add dedicated Access Denied page#668

Merged
StuartFerguson merged 4 commits intomainfrom
copilot/add-access-denied-page
Jan 18, 2026
Merged

Add dedicated Access Denied page#668
StuartFerguson merged 4 commits intomainfrom
copilot/add-access-denied-page

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 18, 2026

Replaces generic error page with a purpose-built Access Denied page when users lack permissions.

Changes

  • New page: AccessDenied.razor at /access-denied with lock icon, clear messaging, and action buttons
  • Navigation helper: NavigateToAccessDeniedPage() extension method in Helpers.cs
  • Permission handling: AuthorizedComponentBase.RequirePermission() now routes to Access Denied instead of Error page

Implementation

// Before
if (hasPermission == false)
{
    // TODO: Navigate to access denied page
    this.NavigationManager.NavigateToErrorPage();
}

// After
if (hasPermission == false)
{
    this.NavigationManager.NavigateToAccessDeniedPage();
}

The page follows existing design patterns from Error.razor using AdminLTE-inspired components and Tailwind CSS. Support email is configurable via AppSettings:SupportEmail.

Screenshot

Access Denied Page

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • f.feedz.io
    • Triggering command: /opt/hostedtoolcache/CodeQL/2.23.8/x64/codeql/csharp/tools/linux64/Semmle.Autobuild.CSharp /opt/hostedtoolcache/CodeQL/2.23.8/x64/codeql/csharp/tools/linux64/Semmle.Autobuild.CSharp (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Access Denied Page</issue_title>
<issue_description>Build a new Access Denied page with a user friendly look.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Build new Access Denied page with user-friendly design Add dedicated Access Denied page Jan 18, 2026
Copilot AI requested a review from StuartFerguson January 18, 2026 19:45
@StuartFerguson
Copy link
Copy Markdown
Member

@copilot are the icons on the actual screen going to be that big ?

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Jan 18, 2026

@copilot are the icons on the actual screen going to be that big ?

Yes, the icon size is intentional and matches the Error page (w-16 h-16 SVG in a w-24 h-24 container). This is consistent with the recently updated Error page design pattern.

If you'd prefer a smaller icon, I can reduce it to w-12 h-12 (similar to what's used in smaller cards) or another size. Let me know your preference.

@StuartFerguson StuartFerguson marked this pull request as ready for review January 18, 2026 20:04
@StuartFerguson StuartFerguson merged commit fc9bbab into main Jan 18, 2026
11 checks passed
@github-actions github-actions Bot deleted the copilot/add-access-denied-page branch March 20, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Access Denied Page

2 participants