Changeset 3068647 for jetpack/trunk/jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-endpoint.php
- Timestamp:
- 04/10/2024 08:25:49 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
jetpack/trunk/jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-endpoint.php
r3067143 r3068647 7 7 8 8 namespace Automattic\Jetpack\Forms\ContactForm; 9 10 use WP_Error;11 use WP_REST_Request;12 9 13 10 /** … … 24 21 public function get_items_permissions_check( $request ) { //phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable 25 22 if ( ! is_user_member_of_blog( get_current_user_id(), get_current_blog_id() ) ) { 26 return new WP_Error(23 return new WP_Error( 27 24 'rest_cannot_view', 28 25 esc_html__( 'Sorry, you cannot view this resource.', 'jetpack-forms' ), … … 42 39 public function get_item_permissions_check( $request ) { //phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable 43 40 if ( ! is_user_member_of_blog( get_current_user_id(), get_current_blog_id() ) ) { 44 return new WP_Error(41 return new WP_Error( 45 42 'rest_cannot_view', 46 43 esc_html__( 'Sorry, you cannot view this resource.', 'jetpack-forms' ),
Note: See TracChangeset
for help on using the changeset viewer.