summaryrefslogtreecommitdiff
path: root/Project-Unite
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-09 16:52:05 -0400
committerMichael <[email protected]>2017-05-09 16:52:05 -0400
commitcc69efa789ec50aa2abb5631f80c1900aa3e97e8 (patch)
tree5faabf5ced7ce1a457629a11dbdb9aa9fb556b58 /Project-Unite
parent3e6500f958b733591df79d76c5ffa9862d2b1d59 (diff)
downloadproject-unite-cc69efa789ec50aa2abb5631f80c1900aa3e97e8.tar.gz
project-unite-cc69efa789ec50aa2abb5631f80c1900aa3e97e8.tar.bz2
project-unite-cc69efa789ec50aa2abb5631f80c1900aa3e97e8.zip
Access denied page.
Diffstat (limited to 'Project-Unite')
-rw-r--r--Project-Unite/Controllers/HomeController.cs5
-rw-r--r--Project-Unite/Project-Unite.csproj1
-rw-r--r--Project-Unite/Views/Home/AccessDenied.cshtml21
3 files changed, 27 insertions, 0 deletions
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 @@
<Content Include="Views\Groups\Index.cshtml" />
<Content Include="Views\Groups\ViewGroup.cshtml" />
<Content Include="Views\Groups\CreateGroup.cshtml" />
+ <Content Include="Views\Home\AccessDenied.cshtml" />
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
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.";
+}
+
+<h2>Access denied.</h2>
+
+<p>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.</p>
+
+<div class="row">
+ <div class="col-xs-6">
+ <h4>If you're Michael...</h4>
+
+ <p>You PROBABLY did something wrong in the source code of the website. Consider debugging and testing before deploying.</p>
+ </div>
+ <div class="col-xs-6">
+ <h4>If you're a staff member and this is in error...</h4>
+
+ <p>Well, you're not Michael, so you better go contact him so he can investigate.</p>
+ </div>
+</div> \ No newline at end of file