From: Joerg Jaspert Date: Thu, 16 Apr 2009 21:05:30 +0000 (+0200) Subject: disallow deletion of notes for trainees X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=8bc670dcf4cb423f3aada72532d421de112220df;p=dak.git disallow deletion of notes for trainees Signed-off-by: Joerg Jaspert --- diff --git a/dak/process_new.py b/dak/process_new.py index 1354d9e2..52e1f4e9 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -703,7 +703,7 @@ def do_new(): edit_note(database.get_new_comments(changes.get("source", ""))) elif answer == 'P' and not Options["Trainee"]: prod_maintainer(database.get_new_comments(changes.get("source", ""))) - elif answer == 'R': + elif answer == 'R' and not Options["Trainee"]: confirm = utils.our_raw_input("Really clear note (y/N)? ").lower() if confirm == "y": database.delete_new_comments(changes.get("source"), changes.get("version"))