mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: correct kwarg name for approved users of creds.has_credential
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
801df832e5
commit
7b047578fd
1 changed files with 2 additions and 2 deletions
|
@ -69,8 +69,8 @@ cred_filters = {
|
||||||
|
|
||||||
def has_credential(user: User,
|
def has_credential(user: User,
|
||||||
credential: int,
|
credential: int,
|
||||||
approved_users: list = tuple()):
|
approved: list = tuple()):
|
||||||
|
|
||||||
if user in approved_users:
|
if user in approved:
|
||||||
return True
|
return True
|
||||||
return user.AccountTypeID in cred_filters[credential]
|
return user.AccountTypeID in cred_filters[credential]
|
||||||
|
|
Loading…
Add table
Reference in a new issue