Skip to content

Commit

Permalink
undo unwanted change
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbenedetto committed Jul 11, 2024
1 parent 1e680e6 commit 8ca3269
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions includes/class-create-block-theme-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,9 @@ public function register_rest_routes() {
array(
'methods' => WP_REST_Server::EDITABLE,
'callback' => array( $this, 'rest_reset_theme' ),
// 'permission_callback' => function () {
// return current_user_can( 'edit_theme_options' );
// },
'permission_callback' => '__return_true',
'permission_callback' => function () {
return current_user_can( 'edit_theme_options' );
},
),
);
}
Expand Down

0 comments on commit 8ca3269

Please sign in to comment.