/[transports]/trunk/lib/Transports/Model/User.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Transports/Model/User.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 76 by dpavlin, Mon Jun 5 14:06:58 2006 UTC revision 77 by dpavlin, Tue Jun 13 15:27:36 2006 UTC
# Line 97  sub current_user_can { Line 97  sub current_user_can {
97    
98      #Carp::confess if ($right eq 'read' and not $args{'column'});      #Carp::confess if ($right eq 'read' and not $args{'column'});
99    
100      if ( $right eq 'read'      if ( $self->id == $self->current_user->id or $self->current_user->admin or $self->current_user->can_import ) {
         and ( $self->id == $self->current_user->id or $self->current_user->admin or $self->current_user->can_import ) )  
     {  
101          return 1;          return 1;
102      } elsif ( $right eq 'read' and $args{'column'} eq 'name' ) {  #    } elsif ( $right eq 'read' and $args{'column'} eq 'name' ) {
103          return (1);  #        return 1;
   
     } elsif (  
                 $right eq 'update' and  
                 ( $self->id == $self->current_user->id or $self->current_user->admin )  
         ) {  
         return (1);  
104      }      }
105    
106      return $self->SUPER::current_user_can( $right, %args );      return $self->SUPER::current_user_can( $right, %args );

Legend:
Removed from v.76  
changed lines
  Added in v.77

  ViewVC Help
Powered by ViewVC 1.1.26