Skip to content

Commit c337808

Browse files
authored
Merge pull request code-dot-org#26693 from code-dot-org/moderate-deleted-project
recover gracefully when admin views deleted project
2 parents a23e3ca + fb447b2 commit c337808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/middleware/helpers/storage_apps.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def content_moderation_disabled?(channel_id)
210210
_owner, storage_app_id = storage_decrypt_channel_id(channel_id)
211211

212212
row = @table.where(id: storage_app_id).exclude(state: 'deleted').first
213-
raise NotFound, "channel `#{channel_id}` not found" unless row
213+
return false unless row
214214

215215
row[:skip_content_moderation]
216216
end

0 commit comments

Comments
 (0)