Parent Directory | Revision Log | Patch
revision 9 by dpavlin, Thu Nov 29 00:34:22 2007 UTC | revision 10 by dpavlin, Thu Nov 29 17:17:16 2007 UTC | |
---|---|---|
# | Line 13 use Arh::Record schema { | Line 13 use Arh::Record schema { |
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 current_user_can { | |
21 | my ( $self, $action,$item,$name ) = @_; | |
22 | return 1 if $self->current_user->superuser || $self->current_user->administrator; | |
23 | return 1 if $self->current_user->id && $action eq 'read'; | |
24 | return 0; | |
25 | } | |
26 | ||
27 | 1; | 1; |
28 |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |