Commits

Diego Búrigo Zacarão committed efe6351

Added a permission check for lock info

- Info should appear only for users that can unlook
the related file.

  • Participants
  • Parent commits c62becb

Comments (0)

Files changed (1)

File transifex/addons/locks/templates/pofile_lock.html

     {% endif %}
     {% tooltip "po-lock-toggle" pofile_id %}
         {% blocktrans %}This file has been locked by user '{{ owner }}'.{% endblocktrans %}<br />
-        <span class="bold">{% blocktrans %}Click on it to unlook the file.{% endblocktrans %}</span><br />
+        {% if is_unlockable %}
+            <span class="bold">{% blocktrans %}Click on it to unlook the file.{% endblocktrans %}</span><br />
+        {% endif %}
         <span class="i16 actionlog">{% blocktrans %}Time left:{% endblocktrans %}</span> {{lock.expires|timeuntil}}.
     {% endtooltip %}