From 1f5d07cc38346c9fa34befd80c064c4db9725457 Mon Sep 17 00:00:00 2001 From: Mike McGrath Date: Tue, 25 Mar 2008 11:01:18 -0500 Subject: [PATCH] simple fix for fas2 --- scripts/upload.cgi/upload.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upload.cgi/upload.cgi b/scripts/upload.cgi/upload.cgi index 4500d04..0226246 100755 --- a/scripts/upload.cgi/upload.cgi +++ b/scripts/upload.cgi/upload.cgi @@ -14,6 +14,7 @@ import stat import md5 import tempfile import StringIO +import grp sys.path.append('/var/fedora-accounts') import website @@ -106,7 +107,8 @@ pieces = os.environ['REQUEST_URI'].split('/') assert pieces[1] == 'repo' if do_userdb_auth: #need_auth = need_auth or not website.have_group(dbh, auth_username, 'cvs' + pieces[2]) - need_auth = need_auth or not website.have_group(dbh, auth_username, 'cvsextras') + #need_auth = need_auth or not website.have_group(dbh, auth_username, 'cvsextras') + need_auth = need_auth or not auth_username in grp.getgrnam('cvsextras')[3] auth_msg = "You do not have the appropriate authorization to upload. %s %s %s" % (dbh, auth_username, 'cvs' + pieces[2]) if need_auth: