diff --git a/files/templates/component/comment/actions_desktop.html b/files/templates/component/comment/actions_desktop.html index d584b28cc..a93c8b647 100644 --- a/files/templates/component/comment/actions_desktop.html +++ b/files/templates/component/comment/actions_desktop.html @@ -19,7 +19,7 @@ {% endif %} {% endif %} -{%- if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] -%} +{%- if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] -%} {%- set show_approve = c.state_mod != StateMod.VISIBLE or "/reported/" in request.path -%} {%- set show_remove = c.state_mod != StateMod.REMOVED -%} - {%- if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] -%} + {%- if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] -%} {%- set show_approve = p.state_mod != StateMod.VISIBLE or "/reported/" in request.path -%} {%- set show_remove = p.state_mod == StateMod.VISIBLE -%} Remove