Changeset 17 for veekun/lib/Vee/Authorization.pm
- Timestamp:
- 02/21/07 22:43:01 (3 years ago)
- Files:
-
- 1 modified
-
veekun/lib/Vee/Authorization.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
veekun/lib/Vee/Authorization.pm
r1 r17 5 5 6 6 use base 'Exporter'; 7 our @EXPORT = qw/has_permission/;8 7 9 8 =head1 NAME … … 13 12 =head1 SYNOPSIS 14 13 15 $c-> has_permission('create_post', $thread->id);14 $c->can_i('create_post', $thread->id); 16 15 17 16 =head1 DESCRIPTION … … 57 56 } 58 57 } 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 } 60 64 61 65 =head1 AUTHOR
