From e5e1ca0e854215970b355e105a248f25802c4daa Mon Sep 17 00:00:00 2001 From: Kacper Kornet Date: Thu, 28 Mar 2013 15:27:05 +0000 Subject: [PATCH] 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() -- 2.44.0