mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(FastAPI): use account type vars instead of strings
Signed-off-by: Steven Guikal <void@fluix.one>
This commit is contained in:
parent
ecbab8546b
commit
125b244f44
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ async def trusted_user_proposal_post(request: Request,
|
|||
|
||||
@router.get("/addvote")
|
||||
@auth_required(True, redirect="/addvote")
|
||||
@account_type_required({"Trusted User", "Trusted User & Developer"})
|
||||
@account_type_required({TRUSTED_USER, TRUSTED_USER_AND_DEV})
|
||||
async def trusted_user_addvote(request: Request,
|
||||
user: str = str(),
|
||||
type: str = "add_tu",
|
||||
|
|
Loading…
Add table
Reference in a new issue