File tree Expand file tree Collapse file tree
src/wp-includes/collaboration Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments