Skip to content

Commit

Permalink
Ensure sync button only visible for admins
Browse files Browse the repository at this point in the history
  • Loading branch information
donker committed Jul 21, 2018
1 parent 9643f07 commit 93e7bb1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
data-versions="@(Newtonsoft.Json.JsonConvert.SerializeObject(ItemRepository.Instance.GetVersionList(Dnn.ActiveModule.ModuleID)))">
</div>

<div class="testButton" data-moduleid="@Dnn.ActiveModule.ModuleID">
</div>
@if (DocBrowserModuleContext.Security.IsAdmin)
{
<div class="testButton" data-moduleid="@Dnn.ActiveModule.ModuleID">
</div>
}

0 comments on commit 93e7bb1

Please sign in to comment.