diff options
| author | Michael <[email protected]> | 2017-05-17 10:26:53 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-17 10:26:53 -0400 |
| commit | 4a089a398a5a8f9aa17da08958ce4c3780b34b51 (patch) | |
| tree | 3ee6d179d3af7556321b0a5a6612e776567898ba /Project-Unite | |
| parent | 733b545c40d33ba23077c7d2fb5e847208475fb3 (diff) | |
| download | project-unite-4a089a398a5a8f9aa17da08958ce4c3780b34b51.tar.gz project-unite-4a089a398a5a8f9aa17da08958ce4c3780b34b51.tar.bz2 project-unite-4a089a398a5a8f9aa17da08958ce4c3780b34b51.zip | |
use new acl system for createtopic
Diffstat (limited to 'Project-Unite')
| -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> |
