]> git.decadent.org.uk Git - dak.git/commitdiff
Print a warning if a trainee tries to do something he's not allowed to do
authorFrank Lichtenheld <djpig@debian.org>
Mon, 26 Oct 2009 19:16:43 +0000 (19:16 +0000)
committerFrank Lichtenheld <djpig@debian.org>
Mon, 26 Oct 2009 19:22:16 +0000 (19:22 +0000)
Signed-off-by: Frank Lichtenheld <djpig@debian.org>
dak/process_new.py

index f15a56003f67ae82e5ec347328d94bdae8100125..3a8dbc7bb13bdd81000e5974802ba063525dc4cb 100755 (executable)
@@ -691,6 +691,10 @@ def do_new():
                 answer = m.group(1)
             answer = answer[:1].upper()
 
+        if answer in ( 'A', 'E', 'M', 'O', 'R' ) and Options["Trainee"]:
+            utils.warn("Trainees can't do that")
+            continue
+
         if answer == 'A' and not Options["Trainee"]:
             try:
                 check_daily_lock()