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 @@
Below you can set the status of your topic.
- @if (ACL.Granted(User.Identity.Name, "CanStickyOwnTopics")) - {Sticky: @Html.CheckBoxFor(Model => Model.IsSticky, new { @class = "form-control" })
- } - @if (ACL.Granted(User.Identity.Name, "CanAnnounceOwnTopics")) - {Announcement: @Html.CheckBoxFor(Model => Model.IsAnnounce, new { @class = "form-control" })
- } - @if (ACL.Granted(User.Identity.Name, "CanGlobalOwnTopics")) - {Global announcement: @Html.CheckBoxFor(Model => Model.IsGlobal, new { @class = "form-control" })
- }