Show
Ignore:
Timestamp:
02/21/07 22:43:01 (3 years ago)
Author:
eevee
Message:

Changed Vee::Authorization::Lol::Overly::Long::Fully::Qualified::Function::Names::has_permission($c, ...) to $c->can_i(...). You're welcome.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/lib/Vee/Authorization.pm

    r1 r17  
    55 
    66use base 'Exporter'; 
    7 our @EXPORT = qw/has_permission/; 
    87 
    98=head1 NAME 
     
    1312=head1 SYNOPSIS 
    1413 
    15     $c->has_permission('create_post', $thread->id); 
     14    $c->can_i('create_post', $thread->id); 
    1615 
    1716=head1 DESCRIPTION 
     
    5756    } 
    5857} 
    59 # TODO: inject this into catalyst so I don't need to pass $c?  otherwise make this cleaner? 
     58 
     59# infuse Catalyst with some awesome 
     60{ 
     61    no strict 'refs'; 
     62    *{'Vee::can_i'} = \&has_permission; 
     63} 
    6064 
    6165=head1 AUTHOR