projects
/
catagits/Catalyst-Plugin-Authentication.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
4359cfe
)
Fix incorrect method name, thanks cmilfo!
Jess Robinson [Thu, 22 Dec 2005 08:04:48 +0000 (08:04 +0000)]
lib/Catalyst/Plugin/Authentication.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/Plugin/Authentication.pm
b/lib/Catalyst/Plugin/Authentication.pm
index
3f80433
..
8dd1a19
100644
(file)
--- a/
lib/Catalyst/Plugin/Authentication.pm
+++ b/
lib/Catalyst/Plugin/Authentication.pm
@@
-397,7
+397,7
@@
leverage this. Add the role authorization plugin:
sub restricted : Local {
my ( $self, $c ) = @_;
- $c->detach("unauthorized") unless $c->check_roles("admin");
+ $c->detach("unauthorized") unless $c->check_user_roles("admin");
# do something restricted here
}