Changeset 645:0d5d80762f5f

Show
Ignore:
Timestamp:
06/22/09 14:54:27 (9 months ago)
Author:
Diego Búrigo Zacarão <diegobz@…>
Branch:
default
Message:

bugfix: Checking proper permission for submitting a file #246

Location:
transifex/translations/templates
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • transifex/translations/templates/comp_lang_stats_table.html

    r644 r645  
    3737           {% pofile_lock stat %} 
    3838           {% if request.user.is_authenticated and perms.repowatch.add_watch and notices_url %}{% watch_toggle stat %}{% endif %} 
    39            {% if request.user.is_authenticated and stat.object.allows_submission and perms.translations.add_pofilelock %} 
     39           {% if request.user.is_authenticated and stat.object.allows_submission and perms.projects.submit_file %} 
    4040             {% if file_edit_url %} 
    4141                <a class="i16 edit_file nodecoration_icon" title="{% trans "Edit " %}{{stat.filename}}" href="{{file_edit_url}}"></a> 
  • transifex/translations/templates/comp_stats_table.html

    r644 r645  
    4949           {% pofile_lock stat %} 
    5050           {% if request.user.is_authenticated and perms.repowatch.add_watch and notices_url %}{% watch_toggle stat %}{% endif %} 
    51            {% if request.user.is_authenticated and stat.object.allows_submission and perms.translations.add_pofilelock %} 
     51           {% if request.user.is_authenticated and stat.object.allows_submission and perms.projects.submit_file %} 
    5252             {% if file_edit_url %} 
    5353                <a class="i16 edit_file nodecoration_icon" title="{% trans "Edit " %}{{stat.filename}}" href="{{file_edit_url}}"></a> 
  • transifex/translations/templates/lang_stats_table.html

    r644 r645  
    4242           {% pofile_lock stat %} 
    4343           {% if request.user.is_authenticated and perms.repowatch.add_watch and notices_url %}{% watch_toggle stat %}{% endif %} 
    44            {% if request.user.is_authenticated and stat.object.allows_submission and perms.translations.add_pofilelock %} 
     44           {% if request.user.is_authenticated and stat.object.allows_submission and perms.projects.submit_file %} 
    4545             {% if file_edit_url %} 
    4646                <a class="i16 edit_file nodecoration_icon" title="{% trans "Edit " %}{{stat.filename}}" href="{{file_edit_url}}"></a>