Skip to content

Commit 62b6482

Browse files
committed
fix phpunit test
1 parent ec957d6 commit 62b6482

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/class-base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ public function is_on_progress_planner_dashboard_page() {
559559
* @return bool
560560
*/
561561
public function is_debug_mode_enabled() {
562-
return ( \defined( 'PRPL_DEBUG' ) && PRPL_DEBUG ) || \get_option( 'prpl_debug' );
562+
return ( ( \defined( 'PRPL_DEBUG' ) && PRPL_DEBUG ) || \get_option( 'prpl_debug' ) ) && \current_user_can( 'manage_options' );
563563
}
564564
}
565565
// phpcs:enable Generic.Commenting.Todo

0 commit comments

Comments
 (0)