use new permission system for blog

This commit is contained in:
Michael 2017-05-17 18:35:09 -04:00
parent db85baaf3c
commit 45746d4c4a

View file

@ -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> <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"> if (User.Identity.IsDeveloper())
<li><a href="@Url.Action("PostBlog")"><span class="glyphicon glyphicon-file"></span> Post</a></li> {
</ul> <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) @foreach(var blog in Model)
{ {
<div class="panel"> <div class="panel">