User tests: Successful: Unsuccessful:
Pull Request resolves #48294.
This is the 5.4 version of PR #48296, which targets 6.2-dev.
I am opening this against 5.4 because the bug also exists in the current 5.4 branch and the fix is small, self-contained, and backward-compatible. Getting it merged in 5.4 first allows the fix to be available sooner in the next 5.4 patch release and then forward-merged through the usual Joomla release branches.
Fixes banners being displayed and opened when their category is unpublished or inaccessible to the current user.
The Banners module now filters banners by the published state and access level of their category. The direct banner click endpoint applies the same checks, so unavailable banners cannot redirect users or increment click counts.
The banner click cache key now includes the current user's authorised view levels, so cached banner results are not shared across users with different access.
Registered.Banners are displayed by the Banners module even when their category is unpublished or inaccessible to the current user.
The direct banner click URL also redirects to the destination and increments the click count in both cases.
Banners are not displayed when their primary category is unpublished or inaccessible to the current user.
The direct banner click URL returns a 404 response and does not increment the click count.
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End com_banners Modules |
I have tested this item ✅ successfully on 8602c7e
I have tested this item ✅ successfully on 8602c7e
tested category usergroup restrictions and state
I have tested this item ✅ successfully on 8602c7e
tested category usergroup restrictions and state
| Status | Pending | ⇒ | Ready to Commit |
| Labels |
Added:
PR-5.4-dev
|
||
RTC
RTC
| Labels |
Added:
RTC
|
||
✅ Final test before merge with JBT using PostgreSQL
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-10-02 16:26:26 |
| Closed_By | ⇒ | richard67 |
Thanks @Reda-Muhamed for this PR, and @chmst , @brianteeman and @muhme for testing.
I have tested this item ✅ successfully on 8602c7e
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48484.