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