Skip to content

Commit

Permalink
Require can_install_plugins permission for jetpack auth url endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
moon0326 committed Jun 11, 2023
1 parent b5b114f commit c703a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/woocommerce/src/Admin/API/OnboardingPlugins.php
Expand Up @@ -103,7 +103,7 @@ function ( $value ) {
array(
'methods' => 'GET',
'callback' => array( $this, 'get_jetpack_authorization_url' ),
'permission_callback' => '__return_true',
'permission_callback' => array( $this, 'can_install_plugins' ),
),
)
);
Expand Down

0 comments on commit c703a7b

Please sign in to comment.