We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec957d6 commit 62b6482Copy full SHA for 62b6482
1 file changed
classes/class-base.php
@@ -559,7 +559,7 @@ public function is_on_progress_planner_dashboard_page() {
559
* @return bool
560
*/
561
public function is_debug_mode_enabled() {
562
- return ( \defined( 'PRPL_DEBUG' ) && PRPL_DEBUG ) || \get_option( 'prpl_debug' );
+ return ( ( \defined( 'PRPL_DEBUG' ) && PRPL_DEBUG ) || \get_option( 'prpl_debug' ) ) && \current_user_can( 'manage_options' );
563
}
564
565
// phpcs:enable Generic.Commenting.Todo
0 commit comments