--- lib/Arh/Model/Place.pm 2007/11/29 16:40:10 9 +++ lib/Arh/Model/Place.pm 2007/11/29 17:17:16 10 @@ -15,9 +15,18 @@ }; +#use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on + # Your model-specific methods go here. sub since { '0.0.3' } +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;