Parent Directory | Revision Log | Patch
revision 6 by dpavlin, Thu Nov 29 12:36:51 2007 UTC | revision 10 by dpavlin, Thu Nov 29 17:17:16 2007 UTC | |
---|---|---|
# | Line 52 sub all_filenames { | Line 52 sub all_filenames { |
52 | return @files; | return @files; |
53 | } | } |
54 | ||
55 | #use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on | |
56 | ||
57 | sub current_user_can { | |
58 | my ( $self, $action,$item,$name ) = @_; | |
59 | return 1 if $self->current_user->superuser || $self->current_user->administrator; | |
60 | return 1 if $self->current_user->id && $action eq 'read'; | |
61 | return 0; | |
62 | } | |
63 | ||
64 | 1; | 1; |
65 |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |