[dak/master 2/7] Print a warning if a trainee tries to do something he's not allowed to do
Signed-off-by: Frank Lichtenheld <djpig@debian.org>
---
dak/process_new.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dak/process_new.py b/dak/process_new.py
index f15a560..3a8dbc7 100755
--- a/dak/process_new.py
+++ b/dak/process_new.py
@@ -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()
--
1.6.3.3
Reply to: