[projects/pld-builder.new] Make acl ready: functional again

draenog draenog at pld-linux.org
Thu Mar 28 19:29:59 CET 2013


commit e5e1ca0e854215970b355e105a248f25802c4daa
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Thu Mar 28 15:27:05 2013 +0000

    Make acl ready: functional again
    
    It is useful to limit new developers and builds triggered by stbr
    requests.

 PLD_Builder/request_handler.py | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/PLD_Builder/request_handler.py b/PLD_Builder/request_handler.py
index 2c38e83..0d0d895 100644
--- a/PLD_Builder/request_handler.py
+++ b/PLD_Builder/request_handler.py
@@ -112,6 +112,11 @@ def handle_group(r, user):
                                 % (user.get_login(), pkg, bld, batch.branch))
                     lockf.close()
                     return
+            if not "test-build" in r.flags and not user.can_do("ready", bld, batch.branch):
+                   fail_mail("user %s is not allowed to send ready builds (ready:%s:%s)" \
+                        % (user.get_login(), bld, batch.branch))
+                   lockf.close()
+                   return
 
     r.priority = user.check_priority(r.priority,config.builder)
     r.requester = user.get_login()
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/e5e1ca0e854215970b355e105a248f25802c4daa



More information about the pld-cvs-commit mailing list