Skip to content

Wrong user recorded for activities #5

Description

@JredLewis

I noticed this issue in Episode 30 at the timestamp of 12:30, and checked the code from the end of the series to look ahead to see if it was resolved, but it has not been yet. This issue comes from the recordActivity method in app\RecordsActivity.php when we set the user_id field.

An example of this issue: if another project member makes a change to the project, it records the activity as being done by the project's owner instead of the project member who made the change.

A potential solution would be checking for a signed in user, and if it didn't find one (so we don't have to sign in for all the tests), then it could defer to the project owner.

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