Anonymous user must not be current user for bookings

Created on 10 October 2023, about 1 year ago
Updated 12 January 2024, 12 months ago

Problem/Motivation

In Drupal all anonymous users share the same user ID 0. BookableCalendarOpeningInstance has a public API for bookings by users, which treats all anonymous users as the same single user. E.g. an anonymous user might get the .booked-by-me CSS class on a booking button, which can not be known for an anon user.

Proposed resolution

Exclude user ID 0 from all ...byCurrentUser() APIs.

πŸ› Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria hudri Austria

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024