]> git.decadent.org.uk Git - dak.git/blobdiff - dak/process_new.py
Print a warning if a trainee tries to do something he's not allowed to do
[dak.git] / 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()