diff options
| author | Michael <[email protected]> | 2017-05-17 18:35:09 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-17 18:35:09 -0400 |
| commit | 45746d4c4a32f697435a7178ef4b83ca65ce4840 (patch) | |
| tree | 99f8d71114a0fb8eb52e8b55278f4cfe7873f1a6 /Project-Unite | |
| parent | db85baaf3c0e0be584286512c8e132f5fc01d06b (diff) | |
| download | project-unite-45746d4c4a32f697435a7178ef4b83ca65ce4840.tar.gz project-unite-45746d4c4a32f697435a7178ef4b83ca65ce4840.tar.bz2 project-unite-45746d4c4a32f697435a7178ef4b83ca65ce4840.zip | |
use new permission system for blog
Diffstat (limited to 'Project-Unite')
| -rw-r--r-- | Project-Unite/Views/Blog/Index.cshtml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Project-Unite/Views/Blog/Index.cshtml b/Project-Unite/Views/Blog/Index.cshtml index 56af4ef..5e65f22 100644 --- a/Project-Unite/Views/Blog/Index.cshtml +++ b/Project-Unite/Views/Blog/Index.cshtml @@ -7,13 +7,15 @@ <p>We ShiftOS devs have a lot going on. If you want to find out a bit more about what we do behind the scenes, this is the place for you. We'll post lots of things for you to read here.</p> -@if(ACL.Granted(User.Identity.Name, "CanBlog")) +@if (Request.IsAuthenticated) { - <ul class="nav nav-pills"> - <li><a href="@Url.Action("PostBlog")"><span class="glyphicon glyphicon-file"></span> Post</a></li> - </ul> + if (User.Identity.IsDeveloper()) + { + <ul class="nav nav-pills"> + <li><a href="@Url.Action("PostBlog")"><span class="glyphicon glyphicon-file"></span> Post</a></li> + </ul> + } } - @foreach(var blog in Model) { <div class="panel"> |
