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

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

revision 12 by dpavlin, Thu Nov 29 19:04:56 2007 UTC revision 13 by dpavlin, Fri Nov 30 00:03:15 2007 UTC
# Line 19  use Arh::Record schema { Line 19  use Arh::Record schema {
19    
20  # Your model-specific methods go here.  # Your model-specific methods go here.
21    
22  sub current_user_can {  use Arh::DefaultACL;
         my ( $self, $action,$item,$name ) = @_;  
         return 1 if $self->current_user->administrator;  
         return 1 if $self->current_user->superuser;  
         return 1 if $action eq 'read';  
     return 0;  
 }  
23    
24  1;  1;
25    

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

  ViewVC Help
Powered by ViewVC 1.1.26