themotte / tildes

Other
11 stars 16 forks source link

Ban user button without requiring database access #26

Closed zorbathut closed 4 years ago

zorbathut commented 4 years ago

It currently seems like there's no way to ban a user without database access. We need a button for that, available to admins.

Deimos commented 4 years ago

There is one, you need to have the user.ban permission: https://github.com/themotte/tildes/blob/master/tildes/tildes/templates/user.jinja2#L192-L205

(Permissions are granted by inserting rows into the user_permissions table, that does require database access still)

zorbathut commented 4 years ago

Aha! Alright I'm just gonna go ahead and close this then, thanks :D