Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

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

Open
lordfriend opened this issue Oct 6, 2019 · 0 comments
Open

Comments

@lordfriend
Copy link
Owner

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'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant