Skip to content

example app doesn't respect user account data #34

Description

@iainkirkpatrick

currently, whoever is logged in can see all dogs that have been created - the problem is a 'dog' has no concept of an 'owner' (an 'agentId').

remedy this by adding an 'agentId' column to the dogs table, passing in the current 'userId' on creation of a dog, and only querying the database for dogs belonging to the current user (and locking down the service to prevent retrieval of other users dogs)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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