/[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 9 by dpavlin, Thu Nov 29 12:36:51 2007 UTC revision 10 by dpavlin, Thu Nov 29 17:17:16 2007 UTC
# Line 52  sub all_filenames { Line 52  sub all_filenames {
52          return @files;          return @files;
53  }  }
54    
55    #use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on
56    
57    sub current_user_can {
58            my ( $self, $action,$item,$name ) = @_;
59            return 1 if $self->current_user->superuser || $self->current_user->administrator;
60            return 1 if $self->current_user->id && $action eq 'read';
61        return 0;
62    }
63    
64  1;  1;
65    

Legend:
Removed from v.9  
changed lines
  Added in v.10

  ViewVC Help
Powered by ViewVC 1.1.26