Skip to content

Commit

Permalink
logic nit re #10862
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Jun 14, 2024
1 parent 56300cc commit 8125407
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arches/app/utils/file_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ def test_unknown_filetypes(self, file, extension=None):
)
else:
errors.append(f"File type is not permitted: {extension}")
case _ if extension not in settings.FILE_TYPES:
case _ if (
extension not in settings.FILE_TYPES
and settings.FILE_TYPE_CHECKING != "lenient"
):
errors.append(f"File type is not permitted: {extension}")
case "xlsx":
try:
Expand Down

0 comments on commit 8125407

Please sign in to comment.