You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the class SubmissionNewView (web/opensubmit/views/frontend.py the LoginRequiredMixin redirection mechanism is overwritten by the dispatch function, which calls can_create_submission and produces an Exception, because an authorized user is expected. (Exception: 'AnonymousUser' object has no attribute 'profile')
The simple fix is to check user.is_authenticated() in the dispatch function. The right way to fix this would probably be writing a custom Mixin for checking submission priviledges.
The text was updated successfully, but these errors were encountered:
In the class
SubmissionNewView
(web/opensubmit/views/frontend.py theLoginRequiredMixin
redirection mechanism is overwritten by the dispatch function, which callscan_create_submission
and produces an Exception, because an authorized user is expected. (Exception: 'AnonymousUser' object has no attribute 'profile'
)The simple fix is to check
user.is_authenticated()
in the dispatch function. The right way to fix this would probably be writing a custom Mixin for checking submission priviledges.The text was updated successfully, but these errors were encountered: