sev Posted July 9, 2017 Report Share Posted July 9, 2017 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 Quote Link to comment Share on other sites More sharing options...
tim260 Posted July 9, 2017 Report Share Posted July 9, 2017 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 } 1 Quote Link to comment Share on other sites More sharing options...
sev Posted July 9, 2017 Author Report Share Posted July 9, 2017 Thanks Tim Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.