Check access inside controller and return json with error message

Created on 8 December 2022, over 2 years ago
Updated 24 January 2023, over 2 years ago

Problem/Motivation

It turns out that cdn is caching drupal's 403 response longer than drupal does and this is causing outages on ohdear app.

Proposed resolution

Don't use drupal's system to deny access but provide uncached json response without data.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇸🇮Slovenia useernamee Ljubljana

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024