/** * Check CAN_MANAGE_REPORTS permission * * @access public * @param User $user * @return boolean */ function canManage(User $user) { return can_manage_reports($user); }
<td style="height:2px;width:140px"></td><td width=12></td><td style="line-height:2px;"> </td><td width=12></td> </tr> <tr> <td height=12></td> <td rowspan=<?php echo count($reportPages) + 2; ?> colspan=2 style="background-color:white"> <div style="padding:10px"> <?php // MAIN PAGES $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_reporting_panel_context_help', true, logged_user()->getId())) { $hd_key = 'chelp reporting panel'; if (can_manage_reports(logged_user())) { $hd_key .= ' manage'; if (logged_user()->isAdministrator() && can_manage_security(logged_user())) { $hd_key .= ' admin'; } } render_context_help($this, $hd_key, 'reporting_panel'); echo '<br/>'; } foreach ($reportPages as $pageTitle => $pageInfo) { ?> <div class="inner_report_menu_div" id="<?php echo $genid . $pageTitle; ?> " style="display:<?php echo $pageTitle == $selectedPage ? 'block' : 'none';