[cloud] Set org creation user tag by site admins
Created by: kopancek
Description
This allows site admins to toggle organization creation user tag. The user tag guards the org creation feature in both UI and graphql endpoints.
Since this is mostly going to be used to guard organization creation in early access of Cloud for small organizations, I don't think we should put in effort for testing. This is mostly throwaway work once we release GA.
Related Jira issue
https://sourcegraph.atlassian.net/browse/CLOUD-167
Screenshots
Testing locally
- Run sg in dotcom mode
- Go to Site-admin -> Users
- You should now see a new button in each row
a. If a user does have
CreateOrg
user tag, the button should have a labelDisable org creation
b. Otherwise the button should have a labelEnable org creation
- Clicking on the button is toggling the user tag for the user in Postgres
- After toggling org creation ON, the user should be able to see
New organization
button in user settings sidebar