Hiding the "Credits" tab from non-privledged administrators Print

  • 3

To hide the "Credits" sub-tab from the client profile for administrators that should not have access to manage client credits, apply the following code within the < HEAD > tag of your administrator template.  Change the 1, 2, 3 array values to the list of WHMCS Administrator Roles that should have access to the credits tab.

{* wbTimeLog Hide Credits Tab *}
{php} global $admin; if( !in_array( $admin['roleid'], array(1,2,3) ) ){ {/php}{literal}
<style>
#_clients_timelog_tabs span:nth-child(3) { display:none; }
</style>
{/literal}{php} } {/php}

Was this answer helpful?

« Back