[Bps-public-commit] App-Changeloggr branch, master, updated. c519281290c9c0a827c392aaff9bc8b9fb9f1a7f

sartak at bestpractical.com sartak at bestpractical.com
Wed Apr 29 17:54:20 EDT 2009


The branch, master has been updated
       via  c519281290c9c0a827c392aaff9bc8b9fb9f1a7f (commit)
      from  166f0a0a23ab52440fb372ce5e624ee9fb0db963 (commit)

Summary of changes:
 lib/App/Changeloggr/Model/User.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit c519281290c9c0a827c392aaff9bc8b9fb9f1a7f
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed Apr 29 17:54:14 2009 -0400

    Avoid undef warning

diff --git a/lib/App/Changeloggr/Model/User.pm b/lib/App/Changeloggr/Model/User.pm
index 19de180..aa48c48 100644
--- a/lib/App/Changeloggr/Model/User.pm
+++ b/lib/App/Changeloggr/Model/User.pm
@@ -24,7 +24,7 @@ sub current_user_can {
 
     # the current user can do anything to his account
     my $session_id = $self->__value('session_id');
-    return 1 if $session_id eq Jifty->web->session->id;
+    return 1 if $session_id eq (Jifty->web->session->id||'');
 
     # users are private except name
     return 1 if $right eq 'read' && $args{column} ne 'name';

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list