-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: don't show listing or detail view if project is spam (#11633)
* Build: don't show listing or detail view if project is spam Check for `is_show_dashboard_denied` when accessing build listing or detail pages and don't show the dashboard if the project is marked as spam. I tried to write some test cases for this, but it's hard since we don't have `readthedocs-ext` in here. I didn't find any test for similar cases either. We could probably mock most of that code, but I don't think it's worth. I tested this locally and it works as expected at least. Closes readthedocs/readthedocs-ext#554 * Tests for dashboard views on spam projects
- Loading branch information
Showing
4 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters