Skip to content

Commit

Permalink
Fixes an issue with marking storage readonly when there is none (#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss authored Nov 16, 2021
1 parent 54b5e25 commit 7018f31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dispatch/incident/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,9 +959,9 @@ def incident_closed_status_flow(incident: Incident, db_session=None):
# typically only broad access to the incident document itself is required.
storage_plugin.instance.open(incident.incident_document.resource_id)

if storage_plugin.configuration.read_only:
# unfortunately this can't be applied at the folder level so we just mark the incident doc as available.
storage_plugin.instance.mark_readonly(incident.incident_document.resource_id)
if storage_plugin.configuration.read_only:
# unfortunately this can't be applied at the folder level so we just mark the incident doc as available.
storage_plugin.instance.mark_readonly(incident.incident_document.resource_id)

# we send a direct message to the incident commander asking to review
# the incident's information and to tag the incident if appropiate
Expand Down

0 comments on commit 7018f31

Please sign in to comment.