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
Quick/Initial implementation to deny showing a project's dashboard if spam score
is above the threshold.
- the old and non-used `ProjectSpamError` that checked for an invalid
description was removed together with all its logic
- the mixin `ProjectSpamMixin` was re-purposed to check the spam score and deny
serving the dashboard
- move "disable banned user to import projects" inside the `ImportWizardView`
Note that currently we are only denying the dashboard for the project's
detail ("Overview" in our UI) view. If we want to deny other pages like
"Downloads", "Search", "Builds", "Versions" and "Admin" we need to adapt other
views as well (e.g. migrate them from function-based view to class-based view to
be able to re-use the mixin). This can be implemented in a future version.
Together with this, we could only deny the dashboard to non-maintainers of the
project itself, allowing them to make some changes in case of a mistake.
0 commit comments