/[A3C]/lib/A3C/Model/User.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/A3C/Model/User.pm

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

lib/CAdmin/Model/User.pm revision 4 by dpavlin, Mon Mar 10 00:19:52 2008 UTC lib/A3C/Model/User.pm revision 12 by dpavlin, Thu Mar 13 16:34:47 2008 UTC
# Line 1  Line 1 
1  use strict;  use strict;
2  use warnings;  use warnings;
3    
4  package CAdmin::Model::User;  package A3C::Model::User;
5  use Jifty::DBI::Schema;  use Jifty::DBI::Schema;
6    
7  use CAdmin::Record schema {  use A3C::Record schema {
8    
9          column name =>          column name =>
10                  type is 'text',                  type is 'text',
# Line 58  use CAdmin::Record schema { Line 58  use CAdmin::Record schema {
58                  label is _('Fax broj');                  label is _('Fax broj');
59    
60          column hrEduPersonUniqueNumber =>          column hrEduPersonUniqueNumber =>
61                  is mandatory,  #               is mandatory,
62                  label is _('JMBG');                  label is _('JMBG');
63    
64          column hrEduPersonDateOfBirth =>          column hrEduPersonDateOfBirth =>
# Line 235  use CAdmin::Record schema { Line 235  use CAdmin::Record schema {
235    
236          column postalAddress =>          column postalAddress =>
237                  label is _('Poštanska adresa'),                  label is _('Poštanska adresa'),
238                    render as 'textarea',
239                  is mandatory;                  is mandatory;
240                    
241          column l =>          column l =>
# Line 250  use CAdmin::Record schema { Line 251  use CAdmin::Record schema {
251                  label is _('Ulica i kućni broj');                  label is _('Ulica i kućni broj');
252                    
253          column homePostalAddress =>          column homePostalAddress =>
254                  label is _('Kućna poštanska adresa');                  label is _('Kućna poštanska adresa'),
255                    render as 'textarea';
256                    
257          column homePhone =>          column homePhone =>
258                  label is _('Kućni telefonski broj');                  label is _('Kućni telefonski broj');
# Line 282  sub validate_telephoneNumber { Line 284  sub validate_telephoneNumber {
284          return ( 1, 'OK' );          return ( 1, 'OK' );
285  }  }
286    
287    sub current_user_can {
288            # FIXME no security for now :-)
289            return 1;
290    }
291    
292  1;  1;
293    

Legend:
Removed from v.4  
changed lines
  Added in v.12

  ViewVC Help
Powered by ViewVC 1.1.26