pogly-standalone icon indicating copy to clipboard operation
pogly-standalone copied to clipboard

Advanced permissions for strict mode

Open Dynrothe opened this issue 1 year ago • 2 comments

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.

Dynrothe avatar Jul 02 '24 23:07 Dynrothe

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

Lethalchip avatar Jul 03 '24 08:07 Lethalchip

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

Lethalchip avatar Jul 03 '24 08:07 Lethalchip