graphile / starter

Opinionated SaaS quick-start with pre-built user account and organization system for full-stack application development in React, Node.js, GraphQL and PostgreSQL. Powered by PostGraphile, TypeScript, Apollo Client, Graphile Worker, Graphile Migrate, GraphQL Code Generator, Ant Design and Next.js
https://graphile-starter.herokuapp.com
Other
1.75k stars 220 forks source link

add a toggle-admin script to facilitate making a user an admin #198

Closed jackbravo closed 1 year ago

jackbravo commented 4 years ago

This is just a simple script to facilitate toggling the is_admin field on any user based on his/her username.

benjie commented 4 years ago

Could you make it accept 1/0 to set/unset admin rather than toggling? I feel like explicitness here is critical.

benjie commented 4 years ago

(And thanks for contributing!)

jackbravo commented 4 years ago

Change made 👍 !

benjie commented 1 year ago

[semi-automated message] Hi, there has been no activity in this issue for a while so I'm closing it to keep the issues/pull requests manageable. If this is still an issue, please re-open with additional details.