Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controlled-duration bans #27

Open
zorbathut opened this issue Jul 13, 2020 · 3 comments
Open

Controlled-duration bans #27

zorbathut opened this issue Jul 13, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@zorbathut
Copy link
Contributor

Along with "ban permanently", we could really use "ban for a given time period".

@zorbathut zorbathut added the enhancement New feature or request label Jul 13, 2020
@JulianRota
Copy link

Note that the User model already has ban_expiry_time, and it appears to be enforced around the codebase. The UI for this should set that field to the desired time.

@Deimos
Copy link
Contributor

Deimos commented Jul 13, 2020

Yes, temp bans are functional, but there's no interface for them currently. I've only ever used them a couple of times, and I just set that column on the user's row manually. There's a cronjob that runs hourly that will lift any bans that have expired.

@zorbathut
Copy link
Contributor Author

Copied from another post, note that there's already a minimal ban interface:

https://github.com/themotte/tildes/blob/master/tildes/tildes/templates/user.jinja2#L192-L205

and so presumably this just needs to be augmented with an optional "timed ban" button and wired into the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants