1. indifex
  2. transifex

Commits

Diego Búrigo Zacarão  committed f3461d2

bugfix: Fixed access for locking files (kind of related to #300)

- People that hava access to submit files for a project
must be able to lock files too.

  • Participants
  • Parent commits aeea743
  • Branches default

Comments (0)

Files changed (2)

File transifex/projects/views.py

View file
  • Ignore whitespace
 
 pr_component_lock_file = (
     ('granular', 'project_perm.maintain'),
+    ('granular', 'project_perm.submit_file'),
     ('general',  'translations.add_pofilelock'),
     ('general',  'translations.delete_pofilelock'),
 )

File transifex/translations/templates/pofile_lock.html

View file
  • Ignore whitespace
     </script>
   {% endifequal %}
 {% else %}
-  {% if perms.translations.add_pofilelock or is_maintainer %}
+  {% if perms.translations.add_pofilelock or can_submit_file or is_maintainer %}
    <form action="{{ toggle_lock_url }}" method="POST" class="microform">
         <input title="{% trans "Lock this file to notify others you're working with it." %}" class="i16 lock_none nodecoration_icon image_submit_type" value="" type="image">
     </form>