13 |
|
|
14 |
}; |
}; |
15 |
|
|
16 |
|
#use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on |
17 |
|
|
18 |
# Your model-specific methods go here. |
# Your model-specific methods go here. |
19 |
|
|
20 |
sub since { '0.0.6' } |
sub since { '0.0.6' } |
21 |
|
|
22 |
|
sub current_user_can { |
23 |
|
my ( $self, $action,$item,$name ) = @_; |
24 |
|
return 1 if $self->current_user->superuser || $self->current_user->administrator; |
25 |
|
return 1 if $self->current_user->id && $action eq 'read'; |
26 |
|
return 0; |
27 |
|
} |
28 |
|
|
29 |
1; |
1; |
30 |
|
|