[Jifty-commit] r1433 - in wifty: .

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sat Jul 1 16:37:03 EDT 2006


Author: nelhage
Date: Sat Jul  1 16:37:02 2006
New Revision: 1433

Modified:
   wifty/   (props changed)
   wifty/trunk/lib/Wifty/Model/User.pm

Log:
 r13517 at phanatique:  nelhage | 2006-06-30 19:13:22 +0200
 This was breaking tests


Modified: wifty/trunk/lib/Wifty/Model/User.pm
==============================================================================
--- wifty/trunk/lib/Wifty/Model/User.pm	(original)
+++ wifty/trunk/lib/Wifty/Model/User.pm	Sat Jul  1 16:37:02 2006
@@ -90,12 +90,11 @@
     my $self  = shift;
     my $right = shift;
     my %args  = (@_);
-    Carp::confess if ($right eq 'read' and not $args{'column'});
     if (    $right eq 'read'
         and $self->id == $self->current_user->id )
     {
         return 1;
-    } elsif ( $right eq 'read' and $args{'column'} eq 'name' ) {
+    } elsif ( $right eq 'read' and $args{'column'} and $args{'column'} eq 'name' ) {
         return (1);
 
     } elsif ( $right eq 'update'


More information about the Jifty-commit mailing list