Commit 64d6469d by Nilu

HT019.5 - HT Owner account is also the 'billing user' and the only team member…

HT019.5 - HT Owner account is also the 'billing user' and the only team member who's authorized to see navigation links for Billing, Plan, Invoices
parent 5c013a57
...@@ -175,4 +175,9 @@ public class CompanyUser extends BaseCompanyUser ...@@ -175,4 +175,9 @@ public class CompanyUser extends BaseCompanyUser
} }
} }
public boolean hasRole(RoleType role)
{
return getRoles() != null && getRoles().contains(role);
}
} }
\ No newline at end of file
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
String secondPage = WebUtils.getSamePageInRenderMode(request, "ManagePlan"); String secondPage = WebUtils.getSamePageInRenderMode(request, "ManagePlan");
String thirdPage = WebUtils.getSamePageInRenderMode(request, "Billing"); String thirdPage = WebUtils.getSamePageInRenderMode(request, "Billing");
String forthPage = WebUtils.getSamePageInRenderMode(request, "Invoices"); String forthPage = WebUtils.getSamePageInRenderMode(request, "Invoices");
SecUser loggedInUser = SecUser.getTXUser(transaction);
CompanyUser companyUser = loggedInUser.getExtension(CompanyUser.REFERENCE_CompanyUser);
%> %>
<oneit:dynIncluded> <oneit:dynIncluded>
...@@ -22,6 +25,10 @@ ...@@ -22,6 +25,10 @@
Hiring Team Details Hiring Team Details
</oneit:button> </oneit:button>
</li> </li>
<%
if(companyUser.hasRole(RoleType.BILLING))
{
%>
<li class="<%= tabNumber == "2" ? "active" : ""%>"> <li class="<%= tabNumber == "2" ? "active" : ""%>">
<oneit:button value=" " name="gotoPage" skin="link" <oneit:button value=" " name="gotoPage" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondPage) requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondPage)
...@@ -43,6 +50,9 @@ ...@@ -43,6 +50,9 @@
Invoices Invoices
</oneit:button> </oneit:button>
</li> </li>
<%
}
%>
</ul> </ul>
</div> </div>
</oneit:dynIncluded> </oneit:dynIncluded>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment