gardenbuilder-app / gardenbuilder-backend-python

Django-based REST API
6 stars 11 forks source link

Update resolve_gardens in gardens/schema.py to throw an error unless user is_staff or is _superuser #17

Closed capndave closed 3 years ago

capndave commented 3 years ago

Please update resolve_gardens (at line 40) in gardens/schema.py to throw an error unless user is_staff or is _superuser. You can check out the resolve_user_gardens resolver for some clues as to how to do so.

iamlordutkarsh commented 3 years ago

We Have To use if condition To define it , if user is is_staff or is_superuser then proceed else throw an Error ?

StatingPrism commented 3 years ago

@capndave, May I have this issue assigned to me?

StatingPrism commented 3 years ago

Request to close? @capndave

capndave commented 3 years ago

Thanks @StatingPrism, I'm closing now. @iamlordutkarsh pardon the delay on getting back to you!