Skip to content

PID=0 for log entries on disabled users #709

@ulrike-cosmoblonde

Description

@ulrike-cosmoblonde

If a fe_user that is not enabled, tries to log into the frontend, a 'failed login' log entry is created.
This entry is correctly attached to the user record BUT has a pid of 0, which can cause access restriction errors for editors trying to edit the user record.

Therefore the pid of the user record should explicitely be set when creating the log entry in the file: in2code/femanager/Classes/Utility/LogUtility.php (around line 40)

         if ($user) {
             $log->setUser($user);
             // explicitely set PID for the log entry
             $log->setPid($user->getPid());
         }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions