From ebf8f5d16faa4c3b15bb8541ee7764d650a7dbb1 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 7 Jan 2015 12:16:41 +0100 Subject: git-serve.py: Allow TUs to push to any repository Implements FS#32807. Signed-off-by: Lukas Fleischer --- scripts/git-integration/git-serve.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/git-integration/git-serve.py b/scripts/git-integration/git-serve.py index d551dba4..227e37b9 100755 --- a/scripts/git-integration/git-serve.py +++ b/scripts/git-integration/git-serve.py @@ -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 " + -- cgit v1.2.3-24-g4f1b