pogly-standalone
pogly-standalone copied to clipboard
Advanced permissions for strict mode
Currently it's just user or moderator, user can move and add elements, moderator can do everything.
Add more specific individual permissions for all the features.
Currently have roles for Owner, Moderator, Editor and None. Only Owner/Moderator are used.
The vision for strict mode is:
- None -> default perm, only view, can't run any reducers
- Editor -> can call element reducers (not raw data), enabling movement and updates to existing elements
- Moderator -> as it is in current state, can do editor stuff + upload new images and use rawData
- Owner -> can do anything
Have reducers already made for setting permissions.
The to-dos are:
- add role check helper functions for editor
- update all reducer logic sanity checking to reflect intended role logic
- check permissions on client side before rendering certain components