Commit e93f198e authored by Johannes Löthberg's avatar Johannes Löthberg Committed by Lukas Fleischer
Browse files

git-serve: Drop direct AccountType checking, use AUR_PRIVILEGED

Signed-off-by: Johannes Löthberg's avatarJohannes Löthberg <>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent ed0e2fd9
......@@ -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 " +
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment