From cc69efa789ec50aa2abb5631f80c1900aa3e97e8 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 9 May 2017 16:52:05 -0400 Subject: [PATCH] Access denied page. --- Project-Unite/Controllers/HomeController.cs | 5 +++++ Project-Unite/Project-Unite.csproj | 1 + Project-Unite/Views/Home/AccessDenied.cshtml | 21 ++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 Project-Unite/Views/Home/AccessDenied.cshtml diff --git a/Project-Unite/Controllers/HomeController.cs b/Project-Unite/Controllers/HomeController.cs index 1006bbf..53fe20d 100644 --- a/Project-Unite/Controllers/HomeController.cs +++ b/Project-Unite/Controllers/HomeController.cs @@ -10,6 +10,11 @@ namespace Project_Unite.Controllers { public class HomeController : Controller { + public ActionResult AccessDenied() + { + return View(); + } + public ActionResult Index() { diff --git a/Project-Unite/Project-Unite.csproj b/Project-Unite/Project-Unite.csproj index 7224e30..ac18c7e 100644 --- a/Project-Unite/Project-Unite.csproj +++ b/Project-Unite/Project-Unite.csproj @@ -594,6 +594,7 @@ + diff --git a/Project-Unite/Views/Home/AccessDenied.cshtml b/Project-Unite/Views/Home/AccessDenied.cshtml new file mode 100644 index 0000000..2f355c1 --- /dev/null +++ b/Project-Unite/Views/Home/AccessDenied.cshtml @@ -0,0 +1,21 @@ + +@{ + ViewBag.Title = "Access denied."; +} + +

Access denied.

+ +

It seems you've tried to access a page you shouldn't access. Maybe it's the admin control panel, maybe you wanted to ban someone but you aren't a moderator. I don't know, but I'm told you can't do that.

+ +
+
+

If you're Michael...

+ +

You PROBABLY did something wrong in the source code of the website. Consider debugging and testing before deploying.

+
+
+

If you're a staff member and this is in error...

+ +

Well, you're not Michael, so you better go contact him so he can investigate.

+
+
\ No newline at end of file