mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 11:21:47 -05:00
use new permission system for blog
This commit is contained in:
parent
db85baaf3c
commit
45746d4c4a
1 changed files with 7 additions and 5 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
if (User.Identity.IsDeveloper())
|
||||||
|
{
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
<li><a href="@Url.Action("PostBlog")"><span class="glyphicon glyphicon-file"></span> Post</a></li>
|
<li><a href="@Url.Action("PostBlog")"><span class="glyphicon glyphicon-file"></span> Post</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@foreach(var blog in Model)
|
@foreach(var blog in Model)
|
||||||
{
|
{
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
|
|
Loading…
Reference in a new issue