[Bps-public-commit] App-Changeloggr branch, master, updated. bd0af4668476248b98e1bdef75e3eceb2e9038ad
sartak at bestpractical.com
sartak at bestpractical.com
Fri May 22 13:55:01 EDT 2009
The branch, master has been updated
via bd0af4668476248b98e1bdef75e3eceb2e9038ad (commit)
from 3a298c2ecd5947cc1d8bb3dd7740cfeaedc5ade0 (commit)
Summary of changes:
lib/App/Changeloggr/Model/Changelog.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit bd0af4668476248b98e1bdef75e3eceb2e9038ad
Author: Shawn M Moore <sartak at gmail.com>
Date: Fri May 22 13:54:54 2009 -0400
Use owner_id instead of owner->id
diff --git a/lib/App/Changeloggr/Model/Changelog.pm b/lib/App/Changeloggr/Model/Changelog.pm
index 5e4d040..c494bfe 100644
--- a/lib/App/Changeloggr/Model/Changelog.pm
+++ b/lib/App/Changeloggr/Model/Changelog.pm
@@ -188,7 +188,7 @@ sub current_user_is_admin {
my $self = shift;
return 1 if Jifty->config->framework('DevelMode');
- return 1 if Jifty->web->current_user->id == $self->owner->id;
+ return 1 if Jifty->web->current_user->id == $self->owner_id;
return 1 if Jifty->web->current_user->is_staff;
my $changelog_admin = App::Changeloggr::Model::ChangelogAdmin->new(
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list