Skip to content

Commit 1bc006c

Browse files
committed
cs.
1 parent d07539b commit 1bc006c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/wp-includes/collaboration/class-wp-http-polling-collaboration-server.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ public function register_routes(): void {
216216
);
217217
}
218218

219-
220219
/**
221220
* Checks if the current user has permission to access a room.
222221
*
@@ -262,10 +261,10 @@ public function check_permissions( WP_REST_Request $request ) {
262261
}
263262

264263
/*
265-
* Writes to a collection room require the entity's mutation cap,
266-
* not just the read cap above. Empty `updates: []` polls only need
267-
* the read cap and are allowed for any user that passed it.
268-
*/
264+
* Writes to a collection room require the entity's mutation cap,
265+
* not just the read cap above. Empty `updates: []` polls only need
266+
* the read cap and are allowed for any user that passed it.
267+
*/
269268
if ( null === $object_id && ! empty( $room_data['updates'] ) ) {
270269
if ( ! $this->can_user_write_entity_type( $entity_kind, $entity_name ) ) {
271270
return new WP_Error(

0 commit comments

Comments
 (0)