[Jifty-commit] r6070 - wifty/trunk/lib/Wifty/Model
Jifty commits
jifty-commit at lists.jifty.org
Sat Dec 6 09:15:24 EST 2008
Author: ruz
Date: Sat Dec 6 09:15:24 2008
New Revision: 6070
Modified:
wifty/trunk/lib/Wifty/Model/User.pm
Log:
* allow to read users' data
Modified: wifty/trunk/lib/Wifty/Model/User.pm
==============================================================================
--- wifty/trunk/lib/Wifty/Model/User.pm (original)
+++ wifty/trunk/lib/Wifty/Model/User.pm Sat Dec 6 09:15:24 2008
@@ -10,4 +10,15 @@
# import columns: password, auth_token
use Jifty::Plugin::Authentication::Password::Mixin::Model::User;
+sub current_user_can {
+ my $self = shift;
+ my $type = shift;
+
+ if ( $type eq 'read' ) {
+ return 1;
+ }
+
+ return $self->SUPER::current_user_can($type, @_);
+}
+
1;
More information about the Jifty-commit
mailing list