Changeset 484


Ignore:
Timestamp:
10/04/09 05:33:39 (15 years ago)
Author:
nanardon
Message:
  • fix acl test
File:
1 edited

Legend:

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

    r475 r484  
    189189    my ($self, $attr, $type) = @_; 
    190190    $type ||= $self->base->get_field_name($self->otype, $attr, 'w') && 
    191               $self->base->check_acl($self->{object} || $self->otype, $attr, 'w') 
     191              $self->base->check_acl($self->{object} 
     192                  ? ($self->{object}, $attr, 'w') 
     193                  : ($self->otype, '@CREATE', 'w')) 
    192194        ? $attrs->{$attr}[1] || '' 
    193195        : 'label'; 
Note: See TracChangeset for help on using the changeset viewer.