summaryrefslogtreecommitdiff
path: root/templates/protector_service_icon.tpl
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-06 20:10:23 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-06 20:10:23 +0100
commit487b42fa1c2d871f06dfb95f41387774852dbb7f (patch)
tree62cbf5d1224df6b22c4547a3ca874f7c9d33e74a /templates/protector_service_icon.tpl
parent63a2a4a41b4b25c2e582480d6a971a1206acc64b (diff)
downloadprotector-487b42fa1c2d871f06dfb95f41387774852dbb7f.tar.gz
protector-487b42fa1c2d871f06dfb95f41387774852dbb7f.tar.bz2
protector-487b42fa1c2d871f06dfb95f41387774852dbb7f.zip
protector: guard empty roles with ?: [-1] to prevent Firebird IN() error
For anonymous users getRoles() returns an empty array, producing IN() with no values — invalid Firebird SQL (-104 Token unknown). Apply the standard guard so anonymous requests get IN(-1) instead, matching the anonymous role_id. Affects both protector_content_list() and protector_content_load(). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates/protector_service_icon.tpl')
0 files changed, 0 insertions, 0 deletions