Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Permissions per object like in DRF and django-guardian #15

Open
sgaseretto opened this issue Mar 4, 2018 · 1 comment
Open

Permissions per object like in DRF and django-guardian #15

sgaseretto opened this issue Mar 4, 2018 · 1 comment

Comments

@sgaseretto
Copy link

What do you suggest in order to handle permissions per object for queries and mutations? Like, for example, you implement a project management software where each user can participate in different projects and have a different role in each project, like SCRUM Master, Product Owner, and Developer. One user can be in different projects and have a different role for each project that will allow him to do different kinds of queries and mutations in each project.
Does graphene-django offer something like this or are there any known packages that can be use in orther to achieve this with graphql?

@dopeboy
Copy link

dopeboy commented May 28, 2018

This question is probably best addressed in the graphene-django project. I'm personally using the decorator method shown by @crucialfelix here.

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

No branches or pull requests

2 participants