Fixed Template macro thread_list_macros::item, canEdit called even with allowEdit is false

Affected version


Well-known member
This macro has an "allowEdit" argument, however; if this is false $thread.canEdit() is still called before testing it. This prevents short-circuit evaluation from skipping canEdit and canUseInlineModeration checks.

<xf:elseif is="$thread.canEdit() AND $thread.canUseInlineModeration() AND {$allowEdit}" />

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.2).

Change log:
Allow short circuiting of canEdit checks in the thread list macros item template.
Any changes made as a result of this issue being resolved may not be rolled out here until later.