Skip to content

Where to put actor unclear #3

@gregpardo

Description

@gregpardo

So I'm not sure if I'm just a little confused but it looks like the readme says you put the actor in the same object as the query options. I had to put the options in the next parameter.

Does not work:

User.findAll({
  where: ...
  actor: new ssacl.Omnipotent()
}).

Works:

User.findAll({
  where: ...
}, {
  actor: new ssacl.Omnipotent()
}).

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