Skip to content

Commit

Permalink
allow updates on aut-num
Browse files Browse the repository at this point in the history
  • Loading branch information
q committed Feb 27, 2025
1 parent c698d9c commit e0c6280
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion irrd/storage/database_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down
2 changes: 1 addition & 1 deletion irrd/updates/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e0c6280

Please sign in to comment.