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

how to create permissions based per page #5

Open
growandwin opened this issue Jan 13, 2021 · 1 comment
Open

how to create permissions based per page #5

growandwin opened this issue Jan 13, 2021 · 1 comment

Comments

@growandwin
Copy link

Hi,

Love your work! I think redwood is going to be the future!
I want to contribute by posting some questions about permissions ;)

  1. how to give permissions for authors only to the pages/cells/content - they created?
    For example, author A created content A, and content B to access editing his posts. Author B does not have permissions to edit what is produced by author A.
    I think generating a new role dynamically for each page would be an overkill (or maybe it would not?)

  2. How with netlify and redwood create permissions for users to view only those pages they are allowed - like in online courses, where each user has only access to the content he has subscribed for. There can be thousands of different lessons but few roles: teacher, student, admin. All users have the same default role there, but they have access to only the content they have bought or been given by a teacher.

@dthyresson
Copy link
Owner

Hi @growandwin.

I responded to a similar issue in the redwood repo: redwoodjs/redwood#1640 (comment)

In short, you have to code those org/app permission rules baed on the auth and the data model/relationships between Course and Teacher, Student models.

The issue above describes some possibilities.

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