--- lib/Arh/Model/Picture.pm 2007/11/29 16:40:10 9 +++ lib/Arh/Model/Picture.pm 2007/11/29 17:17:16 10 @@ -52,5 +52,14 @@ return @files; } +#use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on + +sub current_user_can { + my ( $self, $action,$item,$name ) = @_; + return 1 if $self->current_user->superuser || $self->current_user->administrator; + return 1 if $self->current_user->id && $action eq 'read'; + return 0; +} + 1;