-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AO3-5860 Prevent leaving comments or kudos when logged in as admin (#…
…4378) * Ask admins to log out before commenting https://otwarchive.atlassian.net/browse/AO3-5860 * Ask admins to log out before leaving kudos https://otwarchive.atlassian.net/browse/AO3-5860 * Clean up now irrelevant code * Update reminder text https://otwarchive.atlassian.net/browse/AO3-5860?focusedCommentId=356267 * Controller tests instead of integration tests * Hide kudos/comments button as admin https://otwarchive.atlassian.net/browse/AO3-5860?focusedCommentId=356272 * Restrict commenting on works only? * Attempt at disabling all admin comments * Revert "Attempt at disabling all admin comments" This reverts commit 33b89e0. * Fix test to not restrict admin comments on tags * ? spacing IDE? * Hound * Hide whole form, not solely button * Prevent admin from commenting on anything * Update old test for new behavior * Check message and redirection at once * Add test for no reply comment * Remove empty if Not exactly sure why I wrote it in the first place honestly... * Now useless admin only form * Lost EOF newline * Actually hide Reply link * Check not admin on all "add comment" routes * Consistent location for check * Updated test for new behavior * Unneeded change * More precise message * Better test description * Missing test * Normalize i18n files Unrelated to the rest of the PR Just caught by a different hound * Forgot to update similar tests indeed * Handle :js format * Revert "Handle :js format" This reverts commit 5ddfb2e. * Make sure admin cannot create kudos through AJAX * Oops * Doing two things as once... To make sure each takes forever due to silly mistakes * Actual non silly merge conflict * Intended behavior? * Update ts( to t( In for a penny * If you start doing something... You might as well do it right * Test update * Acceptable HTML
- Loading branch information
Showing
13 changed files
with
150 additions
and
77 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
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
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
Oops, something went wrong.