/[Arh]/lib/Arh/Model/PictureType.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 /lib/Arh/Model/PictureType.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (hide annotations)
Thu Nov 29 17:17:16 2007 UTC (16 years, 5 months ago) by dpavlin
File size: 587 byte(s)
added users/passowrds all over the place
1 dpavlin 4 use strict;
2     use warnings;
3    
4     package Arh::Model::PictureType;
5     use Jifty::DBI::Schema;
6    
7     use Arh::Record schema {
8    
9     column name =>
10     label is _("Type of picture"),
11     is mandatory,
12     is indexed;
13    
14     };
15    
16 dpavlin 10 #use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on
17    
18 dpavlin 4 # Your model-specific methods go here.
19    
20 dpavlin 5 sub since { '0.0.6' }
21    
22 dpavlin 10 sub current_user_can {
23     my ( $self, $action,$item,$name ) = @_;
24     return 1 if $self->current_user->superuser || $self->current_user->administrator;
25     return 1 if $self->current_user->id && $action eq 'read';
26     return 0;
27     }
28    
29 dpavlin 4 1;
30    

  ViewVC Help
Powered by ViewVC 1.1.26