/[transports]/trunk/lib/Transports/Model/Destination.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

Annotation of /trunk/lib/Transports/Model/Destination.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 47 - (hide annotations)
Tue May 30 18:50:16 2006 UTC (18 years ago) by dpavlin
File size: 797 byte(s)
removed unused cruft
1 dpavlin 1 use strict;
2     use warnings;
3    
4     package Transports::Model::Destination::Schema;
5     use Jifty::DBI::Schema;
6    
7     column name =>
8     type is 'text',
9     label is 'Destination client',
10     is mandatory,
11     since '0.0.7';
12    
13     # Your column definitions go here. See L<Jifty::DBI::Schema> for
14     # documentation about how to write column definitions.
15    
16     package Transports::Model::Destination;
17     use base qw/Transports::Record/;
18    
19     # Your model-specific methods go here.
20    
21 dpavlin 22 =head2 current_user_can ACTION
22    
23     Let everybody create, read and update, but not delete.
24    
25     =cut
26    
27     sub current_user_can {
28     my $self = shift;
29     my $type = shift;
30    
31     # We probably want something like this eventually:
32     if ($type =~ /(?:create|read|update)/i) {
33     return 1;
34     } else {
35     return $self->SUPER::current_user_can($type, @_);
36     }
37     }
38    
39 dpavlin 1 1;
40    

  ViewVC Help
Powered by ViewVC 1.1.26