36 |
|
|
37 |
}; |
}; |
38 |
|
|
39 |
|
#use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on |
40 |
|
|
41 |
# Your model-specific methods go here. |
# Your model-specific methods go here. |
42 |
|
|
43 |
sub since { '0.0.3' } |
sub since { '0.0.3' } |
44 |
|
|
45 |
|
sub current_user_can { |
46 |
|
my ( $self, $action,$item,$name ) = @_; |
47 |
|
return 1 if $self->current_user->superuser || $self->current_user->administrator; |
48 |
|
return 1 if $self->current_user->id && $action eq 'read'; |
49 |
|
return 0; |
50 |
|
} |
51 |
|
|
52 |
1; |
1; |
53 |
|
|