moevm / moevm/document_insight_system

Ошибка при проверке авторизации некоторых роутов

Open
#677 0 comments 0 reactions 1 assignee View on GitHub

@vovanbravin is already working on this.

Since Apr 24, 2026.

bug
Dominant language
Python
Stars
9
Forks
5
PR merge metrics
No merged PRs in 30d

Description

dis-web-1  | [25-04-09 01:19:42] {app.py:log_exception:1457} ERROR - Exception on /users/ [GET]
dis-web-1  | Traceback (most recent call last):
dis-web-1  |   File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2073, in wsgi_app
dis-web-1  |     response = self.full_dispatch_request()
dis-web-1  |   File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1518, in full_dispatch_request
dis-web-1  |     rv = self.handle_user_exception(e)
dis-web-1  |   File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1516, in full_dispatch_request
dis-web-1  |     rv = self.dispatch_request()
dis-web-1  |   File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1502, in dispatch_request
dis-web-1  |     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
dis-web-1  |   File "/usr/src/project/app/routes/users.py", line 15, in my_wrapper
dis-web-1  |     if current_user and current_user.is_admin:
dis-web-1  | AttributeError: 'AnonymousUserMixin' object has no attribute 'is_admin'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.