Jump to content

Admin Side panel


sev

Recommended Posts

Hi ,

           I have been searching where to remove a button from the admin side panel, im looking to remove the reports and Expenses button. from the admin sidebar,

                                  Any help would be much grateful

                                                                   Karl

Link to comment
Share on other sites

Hi,

If you open "admin/templates/core_navigation.php" and put the text between line 212 and 233 in comment tags:

<!-- this text will not be showed on your site -->

 the finances menu will be hidden. But do not uncomment the php tag that allows the next if statement to start so it should look like this

 


if(PilotGroups::group_has_perm(Auth::$usergroups, VIEW_FINANCES)
	|| PilotGroups::group_has_perm(Auth::$usergroups, EDIT_EXPENSES)
)
{
?>
<!--<li style="padding: 0; margin: 0;"><a class="menu" href="<?php echo SITE_URL?>/admin/index.php/reports">
	<img src="<?php echo  SITE_URL?>/admin/lib/layout/images/reports_icon.png" />Reports & Expenses</a>
	<ul style="padding: 0; margin: 0;">
		<?php
		if(PilotGroups::group_has_perm(Auth::$usergroups, VIEW_FINANCES))
		{
		?>
		<li><a href="<?php echo adminurl('/reports/overview'); ?>">Overview</a></li>
		<li><a href="<?php echo adminurl('/finance/viewcurrent'); ?>">Financial Reports</a></li>
		<li><a href="<?php echo adminurl('/reports/aircraft'); ?>">Aircraft Reports</a></li>
		<?php
		}
		if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_EXPENSES))
		{
		?>
		<li><a href="<?php echo adminurl('/finance/viewexpenses'); ?>">Expenses</a></li>
		<?php
		}
		?>
		<li></li>
	</ul>
</li>-->
<?php
}

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...