Skip to content

Sequelize v6 compatibility: addPolicies & removePolicies problem #207

@fish0373

Description

@fish0373

My database has a row
row1. ['userA', 'product', 'read']
I want to run function

addPolicies(
    ['userA', 'product', 'read'],
    ['userA', 'product', 'write']
)

I think the result should be
row1. ['userA', 'product', 'read']
row2. ['userA', 'product', 'write']
or

removePolicies(
    ['userA', 'product', 'read'],
    ['userA', 'product', 'write']
)

I think the result should be
no rows.

They're all return false
and database is not been effect

Is it intentional?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions