/[Arh]/lib/Arh/Model/Picture.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 /lib/Arh/Model/Picture.pm

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

revision 11 by dpavlin, Thu Nov 29 17:17:16 2007 UTC revision 12 by dpavlin, Thu Nov 29 19:32:41 2007 UTC
# Line 57  sub all_filenames { Line 57  sub all_filenames {
57  sub current_user_can {  sub current_user_can {
58          my ( $self, $action,$item,$name ) = @_;          my ( $self, $action,$item,$name ) = @_;
59          return 1 if $self->current_user->superuser || $self->current_user->administrator;          return 1 if $self->current_user->superuser || $self->current_user->administrator;
60          return 1 if $self->current_user->id && $action eq 'read';          return 1 if $action eq 'read';
61      return 0;      return 0;
62  }  }
63    

Legend:
Removed from v.11  
changed lines
  Added in v.12

  ViewVC Help
Powered by ViewVC 1.1.26