chore: rename user role (#108)

* chore: rename user role to `host`

* chore: related frontend changes

* chore: fix migration file

* chore: use tricky sql
This commit is contained in:
boojack
2022-07-08 22:16:18 +08:00
committed by GitHub
parent 6f32643d7c
commit bdc9632b5b
15 changed files with 105 additions and 45 deletions

View File

@ -48,7 +48,7 @@ const SettingDialog: React.FC<Props> = (props: Props) => {
<span className="icon-text">🏟</span> Preferences
</span>
</div>
{user?.role === "OWNER" ? (
{user?.role === "HOST" ? (
<>
<span className="section-title">Admin</span>
<div className="section-items-container">