/[Grep]/lib/Grep/Model/Item.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/Grep/Model/Item.pm

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

revision 3 by dpavlin, Sat Feb 17 17:10:27 2007 UTC revision 37 by dpavlin, Tue Feb 20 10:32:30 2007 UTC
# Line 47  sub since { '0.0.1' } Line 47  sub since { '0.0.1' }
47    
48  # Your model-specific methods go here.  # Your model-specific methods go here.
49    
50    sub current_user_can {
51            my $self = shift;
52            my $what = shift;
53    
54            Jifty->log->debug("current_user_can($what) on item ", $self->id);
55    
56            return 1 if Jifty->web->current_user->id;
57    }
58    
59  1;  1;
60    

Legend:
Removed from v.3  
changed lines
  Added in v.37

  ViewVC Help
Powered by ViewVC 1.1.26