primocms / primo

Primo is a visual CMS with a built-in code editor, Svelte blocks, and static site generator.
https://primocms.org
MIT License
1.92k stars 474 forks source link

[WIP] Collaborator addons #390

Open rallisf1 opened 1 month ago

rallisf1 commented 1 month ago

Picking up from #389

I'm almost done with this but it still feels lacking. Using the PUT method to cancel invites is just lazy (sorry), but the alternative is to refactor all API calls to use proper Form Actions.

I'm mostly inclined to do a refactoring on the whole user model and add some proper ACL.

Changes so far

Changing the user role seems too much hassle, thus the workaround is to remove and re-add him with the new role.

ACL Proposal

What do you think?