summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Contests/Index.cshtml
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-21 07:06:08 -0400
committerMichael <[email protected]>2017-05-21 07:06:08 -0400
commit248c3398ddfdb92d2501525758e3044200456792 (patch)
treedd69781bb12767656825a0e20532b676d19c092d /Project-Unite/Views/Contests/Index.cshtml
parentaa7525bcacdd4e7ae23327dd79a584c60f360d9e (diff)
downloadproject-unite-248c3398ddfdb92d2501525758e3044200456792.tar.gz
project-unite-248c3398ddfdb92d2501525758e3044200456792.tar.bz2
project-unite-248c3398ddfdb92d2501525758e3044200456792.zip
correct some permissions for contests
Diffstat (limited to 'Project-Unite/Views/Contests/Index.cshtml')
-rw-r--r--Project-Unite/Views/Contests/Index.cshtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/Project-Unite/Views/Contests/Index.cshtml b/Project-Unite/Views/Contests/Index.cshtml
index b83db41..a752cbd 100644
--- a/Project-Unite/Views/Contests/Index.cshtml
+++ b/Project-Unite/Views/Contests/Index.cshtml
@@ -26,7 +26,7 @@
@if (Request.IsAuthenticated)
{
- if (User.Identity.IsDeveloper())
+ if (User.Identity.IsAdmin())
{
<ul class="nav nav-tabs">
<li><a href="@Url.Action("CreateContest")"><span class="glyphicon glyphicon-plus"></span> Open a contest!</a></li>
@@ -76,7 +76,7 @@
}
@if (Request.IsAuthenticated)
{
- if (User.Identity.IsDeveloper())
+ if (User.Identity.IsAdmin())
{
<a href="@Url.Action("CloseContest", "Contests", new { id = c.Id })" class="btn btn-danger"><span class="close"></span> End contest</a>
}