From e0c628079a911acdc7506bcabcd540d6d330dde5 Mon Sep 17 00:00:00 2001 From: Q Misell Date: Thu, 27 Feb 2025 12:04:15 +0100 Subject: [PATCH] allow updates on aut-num --- irrd/storage/database_handler.py | 2 +- irrd/updates/validators.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/irrd/storage/database_handler.py b/irrd/storage/database_handler.py index aa244c4..8792cc8 100644 --- a/irrd/storage/database_handler.py +++ b/irrd/storage/database_handler.py @@ -574,7 +574,7 @@ def delete_rpsl_object( The origin indicates the origin of this change, see JournalEntryOrigin for the various options. - """ + """t self._check_write_permitted() self._flush_rpsl_object_writing_buffer() table = RPSLDatabaseObject.__table__ diff --git a/irrd/updates/validators.py b/irrd/updates/validators.py index ce60c61..10844fd 100644 --- a/irrd/updates/validators.py +++ b/irrd/updates/validators.py @@ -423,7 +423,7 @@ def process_auth( ) and not rpsl_obj_new.pk() in self._pre_approved: result.error_messages.add("Authorisation failed for the auth methods on this mntner object.") - if isinstance(rpsl_obj_new, RPSLAutNum) or isinstance(rpsl_obj_new, RPSLAsBlock): + if not rpsl_obj_current and (isinstance(rpsl_obj_new, RPSLAutNum) or isinstance(rpsl_obj_new, RPSLAsBlock)): result.error_messages.add("New AS objects must be added by an administrator.") return result