Menu

#4 moderation/admin controls not shown for locked topics / cannot unlock thread

Fixed
nobody
None
Medium
Defect
2012-01-22
2011-12-05
Anonymous
No

Originally created by: lohma...@googlemail.com
Originally owned by: andow...@gmail.com

What steps will reproduce the problem?
1. Lock a topic
2. Now you won't be able to unlock it again as the controls to unlock, move, delete are not shown.

The error is in ./templates/default/post_show.htm
<#if (logged || anonymousPosts) && topic.status != STATUS_LOCKED && !readonly>
<table>
[…]
<#if isModerator || isAdmin>
[moderation links would be added in this block]
</#if>
</table>
</#if>

moving the first if inside the table, and the corresponding closing one above the check for "isModerator || isAdmin" solves the problem. It will create an empty <table ..></table> though when the user is neither moderator nor admin - so the alternative would be to use

.. && ( topic.status != STATUS_LOCKED || isModerator || isAdmin ) && ...
in the first if.

Related

Wiki: NewFeatures234

Discussion

  • Anonymous

    Anonymous - 2012-01-22

    Originally posted by: andow...@gmail.com

    You can still unlcok a locked topic from the topic listing page (forum/show/<forum_id>.page)

     
  • Anonymous

    Anonymous - 2012-01-22

    Originally posted by: andow...@gmail.com

    (No comment was entered for this change.)

    Owner: andow...@gmail.com
    Status: Started

     
  • Anonymous

    Anonymous - 2012-01-22

    Originally posted by: andow...@gmail.com

    (No comment was entered for this change.)

    Status: Fixed

     

Log in to post a comment.