[Bps-public-commit] jifty-plugin-recordhistory branch, master, updated. 0.04-7-g7516756

Shawn Moore sartak at bestpractical.com
Thu Feb 24 17:52:37 EST 2011


The branch, master has been updated
       via  751675606b9876f461f94408abb5d64bc38ae2b2 (commit)
      from  f94ab94f3c6f0420db62c7866e3b6b58121d6393 (commit)

Summary of changes:
 .../RecordHistory/Mixin/Model/RecordHistory.pm     |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 751675606b9876f461f94408abb5d64bc38ae2b2
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Feb 24 17:52:28 2011 -0500

    Delete changes as the superuser

diff --git a/lib/Jifty/Plugin/RecordHistory/Mixin/Model/RecordHistory.pm b/lib/Jifty/Plugin/RecordHistory/Mixin/Model/RecordHistory.pm
index 7145b3b..cda4bb0 100644
--- a/lib/Jifty/Plugin/RecordHistory/Mixin/Model/RecordHistory.pm
+++ b/lib/Jifty/Plugin/RecordHistory/Mixin/Model/RecordHistory.pm
@@ -69,6 +69,8 @@ sub import {
             my $self = shift;
 
             my $changes = $self->changes;
+            $changes->current_user(Jifty::CurrentUser->superuser);
+
             while (my $change = $changes->next) {
                 my $change_fields = $change->change_fields;
                 while (my $change_field = $change_fields->next) {

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



More information about the Bps-public-commit mailing list