24 |
|
|
25 |
}; |
}; |
26 |
|
|
27 |
|
#use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on |
28 |
|
|
29 |
# Your model-specific methods go here. |
# Your model-specific methods go here. |
30 |
|
|
31 |
sub since { '0.0.3' } |
sub since { '0.0.3' } |
32 |
|
|
33 |
|
sub current_user_can { |
34 |
|
my ( $self, $action,$item,$name ) = @_; |
35 |
|
return 1 if $self->current_user->superuser || $self->current_user->administrator; |
36 |
|
return 1 if $self->current_user->id && $action eq 'read'; |
37 |
|
return 0; |
38 |
|
} |
39 |
|
|
40 |
1; |
1; |
41 |
|
|