mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
git-serve: Drop direct AccountType checking, use AUR_PRIVILEGED
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
ed0e2fd975
commit
e93f198ede
1 changed files with 1 additions and 2 deletions
|
@ -86,8 +86,7 @@ def check_permissions(pkgbase, user):
|
|||
unix_socket=aur_db_socket, buffered=True)
|
||||
cur = db.cursor()
|
||||
|
||||
cur.execute("SELECT AccountTypeID FROM Users WHERE UserName = %s ", [user])
|
||||
if cur.fetchone()[0] > 1:
|
||||
if os.environ.get('AUR_PRIVILEGED', '0') == '1':
|
||||
return True
|
||||
|
||||
cur.execute("SELECT COUNT(*) FROM PackageBases " +
|
||||
|
|
Loading…
Add table
Reference in a new issue