diff --git a/tildes/tildes/models/user/user.py b/tildes/tildes/models/user/user.py index eea2d91..b6221c7 100644 --- a/tildes/tildes/models/user/user.py +++ b/tildes/tildes/models/user/user.py @@ -213,6 +213,7 @@ class User(DatabaseModel): if self.is_deleted: acl.append((Deny, Everyone, "ban")) + acl.append((Deny, self.user_id, "ban")) acl.append((Allow, "*:user.ban", "ban")) # view_removed_posts: diff --git a/tildes/tildes/templates/user.jinja2 b/tildes/tildes/templates/user.jinja2 index 1a0e041..6d19357 100644 --- a/tildes/tildes/templates/user.jinja2 +++ b/tildes/tildes/templates/user.jinja2 @@ -189,7 +189,7 @@ Send a private message {% endif %} -{% if request.user != user and request.has_permission("ban", user) %} +{% if request.has_permission("ban", user) %}
{% if user.is_banned %}