title: Hide link based on Role
body: <p>Im new to asp.mvc. I'm trying to develop a portal to maintain employee data. In my system only "Manager" has the rigths to create employee. How do I enable the link when manager log in and disable when employee log in. Thanks</p>
  
  <p>My View</p>
  
  <pre><code>@model IEnumerable&lt;SealManagementPortal_3._0.Models.VOC_CUSTODIAN&gt;
  @{
      ViewBag.Title = "List of Custodians";
  }
  &lt;h2&gt;Index&lt;/h2&gt;
  &lt;p&gt;
      @Html.ActionLink("Create New", "Create")
  &lt;/p&gt;
  &lt;script type="text/javascript"&gt;
      jQuery(document).ready(function () {
          jQuery("#list2").jqGrid({
              url: '@Url.Action("GridData", "Custodian")',
              datatype: 'json',
              mtype: 'GET',
              colNames: ['Agent ID', 'Branch', 'Unique ID', 'Custodian Name', /*'NRIC No', 'E-Mail', 'Contact No', 'Mobile No',*/'Role', 'Details', 'Edit', 'Delete'],
              colModel: [
                  { name: 'Agent ID', index: '', width: 10, align: 'left' },
                  { name: 'Branch', index: '', width: 10, align: 'left' },
                  { name: 'Unique ID', index: '', width: 10, align: 'left' },
                  { name: 'Custodian Name', index: '', width: 10, align: 'left' },                
                  {name: 'Role', index: '', width: 10, align: 'left' },
                  { name: 'Details', index: '', width: 5, align: 'left' },
                  { name: 'Edit', index: '', width: 5, align: 'left' },
                  { name: 'Delete', index: '', width: 5, align: 'left'}],
              pager: jQuery('#pager2'),
              rowNum: 10,                
              sortname: 'Id',
              sortorder: "desc",
              viewrecords: true,
              autowidth: true,
              caption: 'Custodians List'
          });
      }); 
  &lt;/script&gt;
  @using (Html.BeginForm())
  {
      &lt;table id="list2" class="scroll" cellpadding="0" cellspacing="0"&gt;&lt;/table&gt;
  </code></pre>