[Bps-public-commit] jifty-plugin-authentication-twitter branch, master, updated. a18ebde2d05bdf611df75b823c8b942cbf9fbb82

Shawn Moore sartak at bestpractical.com
Thu Jun 10 16:46:27 EDT 2010


The branch, master has been updated
       via  a18ebde2d05bdf611df75b823c8b942cbf9fbb82 (commit)
      from  ff4cca3cc105214b0462bcaeae65d411736d630e (commit)

Summary of changes:
 .../Plugin/Authentication/Twitter/Dispatcher.pm    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit a18ebde2d05bdf611df75b823c8b942cbf9fbb82
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Jun 10 16:46:47 2010 -0400

    Instantiate the user object as superuser to avoid ACL issues

diff --git a/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm b/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
index 08d627b..839373a 100644
--- a/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
+++ b/lib/Jifty/Plugin/Authentication/Twitter/Dispatcher.pm
@@ -107,7 +107,7 @@ on '/twitter/callback' => run {
     $twitter_account->load_by_cols(
         twitter_id => $twitter_id,
     );
-    my $user = Jifty->app_class('Model', 'User')->new;
+    my $user = Jifty->app_class('Model', 'User')->new(current_user => Jifty::CurrentUser->superuser);
 
     if ($twitter_account->id) {
         $user->load($twitter_account->user_id);

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



More information about the Bps-public-commit mailing list