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
Describe the bug
If a user can view a project, but they can not view any components, and they navigate to https://URL/translate/project-slug/-/lang-code/, their request will throw an exception.
In our case:
Request Method: GET
Request URL: https://project.url/translate/PROJECT/-/zh_Hans/
Django Version: 3.1.1
Exception Type: ValueError
Exception Value: Not supported type for permission check: ProjectLanguageComponent
Exception Location: weblate/auth/permissions.py, line 84, in check_permission
This occurs because the default component class in weblate/utils/stats.py is self.component = ProjectLanguageComponent()
The text was updated successfully, but these errors were encountered:
Describe the bug
If a user can view a project, but they can not view any components, and they navigate to https://URL/translate/project-slug/-/lang-code/, their request will throw an exception.
In our case:
This occurs because the default component class in weblate/utils/stats.py is
self.component = ProjectLanguageComponent()
The text was updated successfully, but these errors were encountered: