diff options
| -rw-r--r-- | Project-Unite/Views/Forum/CreateTopic.cshtml | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Project-Unite/Views/Forum/CreateTopic.cshtml b/Project-Unite/Views/Forum/CreateTopic.cshtml index 9d3df84..bb59202 100644 --- a/Project-Unite/Views/Forum/CreateTopic.cshtml +++ b/Project-Unite/Views/Forum/CreateTopic.cshtml @@ -31,7 +31,7 @@ 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; } @@ -65,18 +65,9 @@ <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> - } - @if (ACL.Granted(User.Identity.Name, "CanAnnounceOwnTopics")) - { <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> - } </div> <div class="@pollStyle" id="t_polls"> <h4>Polls</h4> |
