/[Arh]/lib/Arh/Model/Chronology.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Arh/Model/Chronology.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9 by dpavlin, Thu Nov 29 11:20:24 2007 UTC revision 10 by dpavlin, Thu Nov 29 17:17:16 2007 UTC
# Line 25  use Arh::Record schema { Line 25  use Arh::Record schema {
25    
26  };  };
27    
28    #use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on
29    
30  # Your model-specific methods go here.  # Your model-specific methods go here.
31    
32  sub since { '0.0.3' }  sub since { '0.0.3' }
33    
34    sub current_user_can {
35            my ( $self, $action,$item,$name ) = @_;
36            return 1 if $self->current_user->superuser || $self->current_user->administrator;
37            return 1 if $self->current_user->id && $action eq 'read';
38        return 0;
39    }
40    
41  1;  1;
42    

Legend:
Removed from v.9  
changed lines
  Added in v.10

  ViewVC Help
Powered by ViewVC 1.1.26