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

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

revision 13 by dpavlin, Fri Nov 30 00:03:15 2007 UTC revision 23 by dpavlin, Fri Nov 30 23:23:14 2007 UTC
# Line 47  use Arh::Record schema { Line 47  use Arh::Record schema {
47                  label is _('Organization'),                  label is _('Organization'),
48                  since '0.0.3';                  since '0.0.3';
49    
50            column editing =>
51                    type is 'boolean',
52                    label is _("Edit mode"),
53                    default is 0,
54                    since '0.0.10';
55    
56  };  };
57    
58  use Jifty::Plugin::User::Mixin::Model::User;  use Jifty::Plugin::User::Mixin::Model::User;
# Line 69  sub current_user_can { Line 75  sub current_user_can {
75          warn "current_user_can $action | $item | ", $name ? $name : 'NO NAME', "\n";          warn "current_user_can $action | $item | ", $name ? $name : 'NO NAME', "\n";
76    
77          if ( $action eq 'read' && $item eq 'column' ) {          if ( $action eq 'read' && $item eq 'column' ) {
78                  foreach ( qw/name lastname email organization/) {                  foreach ( qw/name lastname email organization editing/) {
79                          return 1 if $name eq $_;                          return 1 if $name eq $_;
80                  }                  }
81                  return 0;                  return 0;

Legend:
Removed from v.13  
changed lines
  Added in v.23

  ViewVC Help
Powered by ViewVC 1.1.26