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

Can I create its own Instance when we edit? #4

Open
uuc110 opened this issue Apr 7, 2023 · 1 comment
Open

Can I create its own Instance when we edit? #4

uuc110 opened this issue Apr 7, 2023 · 1 comment

Comments

@uuc110
Copy link

uuc110 commented Apr 7, 2023

What I Mean is if Someone edit the website so now the edits is only for the person who edits and now the website belong to the user who changed it. so it can be like a website when anyone can take your website edit as it wish and then use it. but can we also do it as i said previously in italic, and we also get credit someone in footer or a pop up that this website is fork or copy of XYZ user. and no one can remove it unless the original owner of page permit the watermark to be removed.

@nilskj
Copy link
Collaborator

nilskj commented Apr 11, 2023

This should be possible but you need a multi user authentication setup, and extend the database schema to add references users. So I guess you might need these changes:

  • Instead of a single admin user with password, add an entity User to database schema and extend the auth system (don't store passwords).
  • For the entities that you need to be "owned" by a specific user, you can add a column to their tables with a reference to userId.
  • For mutations, grab the logged in user from session and mutate that users records.

The "forking" as you describe would then be to copy a row in the database and set its userId to the new user, also store the original owner on it. Simple enough :)

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

2 participants