PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
← All changes | includes/admin/reports/reports.php +5 -0 2.30.04.16.9 View file →
@@ -297,12 +297,17 @@
297 297
298 298 /**
299 299 * Renders the Reports Earnings Graphs
300 300 *
301 + * @since 3.22.1 added permissions check
301 302 * @since 1.0
302 303 * @return void
303 304 */
304 305 function give_reports_earnings() {
306 + if (!current_user_can('view_give_reports')){
307 + wp_die(__('You do not have permission to access this report', 'give'), __('Error', 'give'), ['response' => 403]);
308 + }
309 +
305 310 ?>
306 311 <div class="tablenav top reports-table-nav">
307 312 <h2 class="reports-earnings-title screen-reader-text"><?php _e( 'Revenue Report', 'give' ); ?></h2>
308 313 </div>