Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Merge functionality from ackerdev/sequelize-attribute-roles? #7

@ackerdev

Description

@ackerdev

Hi there,

I've written a spin-off of this package as I was interested in attribute roles but felt that overriding get/set wasn't good enough for my purposes; I decided to prototype something that could use Sequelize hooks to hide attributes on find. It turns out to work pretty decently, and I figured it might be of interest to you if you might want to merge in this functionality to replace the existing override.

Currently it only works for reads, and does not guard attributes on writes, and uses a similar but not exactly alike syntax for defining the role permissions on attributes. I'd be happy to assist in merging this if needed, the source should be easy to follow, but just let me know.

sequelize-attribute-roles

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions