mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
Access denied page.
This commit is contained in:
parent
3e6500f958
commit
cc69efa789
3 changed files with 27 additions and 0 deletions
|
@ -10,6 +10,11 @@ namespace Project_Unite.Controllers
|
|||
{
|
||||
public class HomeController : Controller
|
||||
{
|
||||
public ActionResult AccessDenied()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public ActionResult Index()
|
||||
{
|
||||
|
||||
|
|
|
@ -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\" />
|
||||
|
|
21
Project-Unite/Views/Home/AccessDenied.cshtml
Normal file
21
Project-Unite/Views/Home/AccessDenied.cshtml
Normal file
|
@ -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>
|
Loading…
Reference in a new issue