Changeset 780


Ignore:
Timestamp:
02/02/10 02:17:42 (14 years ago)
Author:
nanardon
Message:
  • fix form view over acl checking
Location:
LATMOS-Accounts-Web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm

    r761 r780  
    206206        ? ($self->{object}, $attr, 'w') 
    207207        : ($self->otype, '@CREATE', 'w')); 
    208     $type ||= $self->base->get_field_name($self->otype, $attr, 'w') && $modallow 
    209         ? $attrs->{$attr}[1] || '' 
    210         : 'label'; 
     208    $type ||= $attrs->{$attr}[1] || ''; 
     209    if (!($self->base->get_field_name($self->otype, $attr, 'w') && $modallow)) { 
     210        $type = 'label'; 
     211    } 
    211212    # exception: gidNumber is used also in group, but we don't want 
    212213    # group list here, really the number ! 
  • LATMOS-Accounts-Web/root/html/users/address_list.tt

    r686 r780  
    1818[% END %] 
    1919[% IF NOT c.req.param('add_addr') %] 
     20[% IF c.model('Accounts').db.check_acl(user, 'l', 'w') && 
     21      c.model('Accounts').db.check_acl('address', '@CREATE', 'w') %] 
    2022<tr><td colspan=2 align="center"> 
    2123<form action="[% c.uri_for(username, subform) %]" method="POST"> 
     
    2527</td></tr> 
    2628[% END %] 
     29[% END %] 
    2730</table> 
    2831</form> 
Note: See TracChangeset for help on using the changeset viewer.