starter icon indicating copy to clipboard operation
starter copied to clipboard

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

Open jackbravo opened this issue 5 years ago • 3 comments

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

jackbravo avatar Sep 05 '20 00:09 jackbravo

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

benjie avatar Sep 05 '20 08:09 benjie

(And thanks for contributing!)

benjie avatar Sep 05 '20 08:09 benjie

Change made 👍 !

jackbravo avatar Sep 09 '20 02:09 jackbravo

[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.

benjie avatar Mar 02 '23 16:03 benjie