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