Closed
Bug 869480
Opened 12 years ago
Closed 12 years ago
Middleware for enforcing user bans
Categories
(developer.mozilla.org Graveyard :: User management, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jbennett, Assigned: jbennett)
References
Details
We need to implement a Django middleware which notices if the current HTTP request matches a current user ban, and if so makes sure the user is logged out before proceeding.
Optionally, when it does this, it could redirect to a page explaining that the user/IP/whatever is banned, and offering info on how to find out what happened/talk to someone who could lift the ban.
Comment 1•12 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/b0998c5f6f749538324056bea4f51ec790393b2d
Fix bug 869480 and bug 809495: infrastructure for user bans.
This is a simple model for user bans, and a middleware which enforces
them. The middleware will log out any request from a banned user, and
show them a page which can explain that they're banned, and show the
reason for the ban, before letting them proceed to their requested
page.
A simple user-banning view (keyed off permission to create the UserBan
model) is also included, collecting appropriate details on who issued
the ban and why.
https://github.com/mozilla/kuma/commit/2d0a0bb5ad9cf7f058d94e0005ed2d7d1ad54772
Merge pull request #1108 from ubernostrum/ban-middleware-869480
Fix bug 869480 and bug 809495: infrastructure for user bans.
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•