We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d71616 commit 3448755Copy full SHA for 3448755
backend/globaleaks/handlers/base.py
@@ -341,7 +341,7 @@ def process_file_upload(self):
341
file_id = self.request.args[b'flowIdentifier'][0].decode()
342
343
if file_id not in self.state.TempUploadFiles:
344
- if self.session.user_role == 'whistleblower':
+ if self.session and self.session.user_role == 'whistleblower':
345
State.RateLimitingTable.check(self.request.path + b'#' + self.session.user_id.encode(),
346
State.tenants[1].cache.threshold_attachments_per_hour_per_report)
347
State.RateLimitingTable.check(self.request.path + b'#' + self.request.client_ip.encode(),
0 commit comments