Albireo icon indicating copy to clipboard operation
Albireo copied to clipboard

AttributeError: 'AnonymousUserMixin' object has no attribute 'level'

Open lordfriend opened this issue 5 years ago • 0 comments

https://sentry.io/organizations/nyasoft/issues/609682905/?referrer=github_plugin

AttributeError: 'AnonymousUserMixin' object has no attribute 'level'
  File "flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "service/auth.py", line 11, in func_wrapper
    if current_user.level < mini_level or current_user.email is None or not current_user.email_confirmed:
  File "werkzeug/local.py", line 347, in __getattr__
    return getattr(self._get_current_object(), name)

'AnonymousUserMixin' object has no attribute 'level'

lordfriend avatar Oct 06 '19 02:10 lordfriend