Project

General

Profile

Bug #8166

Calling Application::User on a user id that doesn't exist outputs warning

Added by krileon about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
High
Assignee:
-
Target version:
Start date:
10 September 2020
Due date:
% Done:

0%

Estimated time:

Description

Joomla load function will output a warning that user id doesn't exist if load is called with a non-existing user id. Typically a user is interacted with using CBs user table object, which won't do this since we just map to a empty Joomla user object. However the library API of Application::User directly calls CMS user object functions and will cause this if for example checking if a non-existing user is a moderator or checking for their ACL.

History

#1 Updated by krileon about 1 month ago

Also an issue for _getCmsUserObject in CBframework which isn't even using Application::User

Also available in: Atom PDF