mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-23 01:32:16 +00:00
use new acl system for createtopic
This commit is contained in:
parent
733b545c40
commit
4a089a398a
1 changed files with 1 additions and 10 deletions
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
|
|
||||||
bool showGeneral = false;
|
bool showGeneral = false;
|
||||||
if (ACL.Granted(User.Identity.Name, "CanStickyOwnTopics") || ACL.Granted(User.Identity.Name, "CanGlobalOwnTopics") || ACL.Granted(User.Identity.Name, "CanAnnounceOwnTopics"))
|
if (User.Identity.IsModerator())
|
||||||
{
|
{
|
||||||
showGeneral = true;
|
showGeneral = true;
|
||||||
}
|
}
|
||||||
|
@ -65,18 +65,9 @@
|
||||||
|
|
||||||
<p>Below you can set the status of your topic.</p>
|
<p>Below you can set the status of your topic.</p>
|
||||||
|
|
||||||
@if (ACL.Granted(User.Identity.Name, "CanStickyOwnTopics"))
|
|
||||||
{
|
|
||||||
<p><strong>Sticky: </strong>@Html.CheckBoxFor(Model => Model.IsSticky, new { @class = "form-control" })</p>
|
<p><strong>Sticky: </strong>@Html.CheckBoxFor(Model => Model.IsSticky, new { @class = "form-control" })</p>
|
||||||
}
|
|
||||||
@if (ACL.Granted(User.Identity.Name, "CanAnnounceOwnTopics"))
|
|
||||||
{
|
|
||||||
<p><strong>Announcement: </strong>@Html.CheckBoxFor(Model => Model.IsAnnounce, new { @class = "form-control" })</p>
|
<p><strong>Announcement: </strong>@Html.CheckBoxFor(Model => Model.IsAnnounce, new { @class = "form-control" })</p>
|
||||||
}
|
|
||||||
@if (ACL.Granted(User.Identity.Name, "CanGlobalOwnTopics"))
|
|
||||||
{
|
|
||||||
<p><strong>Global announcement: </strong>@Html.CheckBoxFor(Model => Model.IsGlobal, new { @class = "form-control" })</p>
|
<p><strong>Global announcement: </strong>@Html.CheckBoxFor(Model => Model.IsGlobal, new { @class = "form-control" })</p>
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="@pollStyle" id="t_polls">
|
<div class="@pollStyle" id="t_polls">
|
||||||
<h4>Polls</h4>
|
<h4>Polls</h4>
|
||||||
|
|
Loading…
Reference in a new issue