We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d44d1b commit f1a5b8eCopy full SHA for f1a5b8e
app/models/operator_document.rb
@@ -142,7 +142,8 @@ def publication_authorization?
142
# # TODO: I would name it public? but we have public attribute that should be refactored at some point
143
def needs_authorization_before_downloading?
144
return true if publication_authorization?
145
- return false if (doc_valid? || doc_expired?) && (operator.publication_authorization_signed? || public?)
+ # doc_not_required? is included as that document could have annexes and those should be downloadable without authorization
146
+ return false if (doc_valid? || doc_expired? || doc_not_required?) && (operator.publication_authorization_signed? || public?)
147
148
true
149
end
0 commit comments