Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6312


Ignore:
Timestamp:
05/27/11 18:27:37 (14 years ago)
Author:
dkahn
Message:

#1198 Don't show plugin menu items if user isn't authenticated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Views/Shared/Site.Master

    r6289 r6312  
    3434          <%}%>>
    3535          <%: Html.ActionLink("Home", "Index", "Home")%></li>
     36          <% if (Request.IsAuthenticated) {%>
    3637        <% foreach (var pluginLink in
    3738          HLWebPluginHost.PluginLib.PluginHelper.GetPluginActions()) {  %>
    3839        <li <% if(ViewContext.RouteData.Values["controller"].ToString() == pluginLink.Controller) {%>
    3940          class="selected" <%}%>>
    40           <%: Html.ActionLink(pluginLink.Name, 
    41                             pluginLink.Action, 
     41          <%: Html.ActionLink(pluginLink.Name,
     42                            pluginLink.Action,
    4243                            pluginLink.Controller)%>
    4344        </li>
    44         <% } %>
     45        <% }
     46        }%>
    4547        <li <% if(ViewContext.RouteData.Values["action"].ToString() == "About") {%> class="selected"
    4648          <%}%>>
Note: See TracChangeset for help on using the changeset viewer.