Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add personnal boxes #1

Open
jrmi opened this issue Oct 21, 2020 · 0 comments
Open

Add personnal boxes #1

jrmi opened this issue Oct 21, 2020 · 0 comments

Comments

@jrmi
Copy link
Owner

jrmi commented Oct 21, 2020

Private box are box only for authenticated user.
To add private box we need:

  • To create a store wrapper with that API:
    • constructor(store) => keep the store internally for further references
    • getStore(user) => return an object with original store API but box id is rewriten if the box is "private" (we can rewrite box id like that _${userID}_${boxId}) to access transparently to user specific store. boxId starting with _ are internal only.
  • Allow to create private store by using the already defined personnal box options
  • To use that wrapper everywhere a store is used:
    • In CRUD views
    • In execute middleware context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant