Commit ebf8f5d1 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

git-serve.py: Allow TUs to push to any repository



Implements FS#32807.
Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent fc23a9bd
......@@ -92,6 +92,10 @@ 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:
return True
cur.execute("SELECT COUNT(*) FROM PackageBases " +
"LEFT JOIN PackageComaintainers " +
"ON PackageComaintainers.PackageBaseID = PackageBases.ID " +
......
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