[Bps-public-commit] smokingit branch, anna, updated. 8acc32992252055145c060ee8fc19bf516fbc8fb
Alex Vandiver
alexmv at bestpractical.com
Fri Jun 28 17:25:50 EDT 2013
The branch, anna has been updated
via 8acc32992252055145c060ee8fc19bf516fbc8fb (commit)
from ccff3eec9081df46b3380b3897b7c0ea80d42f80 (commit)
Summary of changes:
lib/Smokingit/IRC.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 8acc32992252055145c060ee8fc19bf516fbc8fb
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Jun 28 17:25:48 2013 -0400
Projects needs to be sync'd as an auth'd user
diff --git a/lib/Smokingit/IRC.pm b/lib/Smokingit/IRC.pm
index e25fcdf..015cd58 100644
--- a/lib/Smokingit/IRC.pm
+++ b/lib/Smokingit/IRC.pm
@@ -190,14 +190,14 @@ sub do_sync {
$incoming => "No such project $what!",
);
}
- my @results = $project->sync;
+ my @results = $project->as_superuser->sync;
return $incoming->reply("No changes") unless @results;
return $incoming->reply(join("; ", @results));
} else {
my $projects = Smokingit::Model::ProjectCollection->new;
$projects->unlimit;
while (my $p = $projects->next) {
- $p->sync;
+ $p->as_superuser->sync;
}
return $incoming->reply("Synchronized ".$projects->count." projects");
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list