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

User Permissions/Roles #4

Open
ghost opened this issue Jul 25, 2017 · 5 comments
Open

User Permissions/Roles #4

ghost opened this issue Jul 25, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 25, 2017

I'm unsure how to do user roles/permissions. For example, I want to let some users be writers - they are allowed to write tutorials, some will be editors - they can only edit existing tutorials and not create new tutorials, etc. I'm not sure how I should setup the database for this, etc.

@ghost ghost added the help wanted label Jul 27, 2017
@AnthyG
Copy link

AnthyG commented Aug 4, 2017

I think, the even bigger problem here is, if somebody isn't a writer, he will most probably still be able to create a new thing, and get it seeded, manually.. If I understand your issue correct... 😅

@ghost
Copy link
Author

ghost commented Aug 4, 2017

Good point. I didn't even think about that.

@purplesyringa
Copy link

You could create directories data/users - comments and data/writers. For data/users, you will set user_permissions in content.json. For data/writers, you can manually create directories data/writers/id and include those data/writers/id/content.jsons with signers in data/writers/content.json. For editors, you can add their signing keys to every signers field in data/writers/content.json.

@AnthyG
Copy link

AnthyG commented Nov 29, 2017

@imachug did you actually do that for a zite of yours, if I may ask?

@purplesyringa
Copy link

I was trying to create StackOverflow for ZeroNet, and I used that technology there. Unfortunately, I was only learning how to use webpack back then, so I messed all my code and I didn't even add database support. But that would work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants