mononoken / fae-scribe

0 stars 0 forks source link

Add roles to Membership #53

Closed mononoken closed 10 months ago

mononoken commented 10 months ago

Currently, the creator of a Collection is the owner of the Collection but not a member. member and owner are two completely separate relationships that both end on a User.

I think it would be better for the owner to be a type of member. This would be recorded under the Membership.

We could also create other types or roles. This would help with managing different levels of permissions in our policy files too.

There is the option of keeping the owner_id foreign key while implementing roles into Membership. However, I currently don't see value in such a redundancy currently.

mononoken commented 10 months ago

29eca4ed389ca6c44ee5fd7f1c8fa3bcdb9fbd8d finishes refactoring of specs after adding roles.