[Jifty-commit] r1519 - in jifty/trunk: lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Jul 10 10:26:27 EDT 2006
Author: trs
Date: Mon Jul 10 10:26:26 2006
New Revision: 1519
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Notification.pm
Log:
r14130 at zot: tom | 2006-07-10 10:08:55 -0400
Not all CurrentUser classes may have a "nobody"
Modified: jifty/trunk/lib/Jifty/Notification.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Notification.pm (original)
+++ jifty/trunk/lib/Jifty/Notification.pm Mon Jul 10 10:26:26 2006
@@ -206,8 +206,11 @@
my $currentuser_object_class = Jifty->config->framework('ApplicationClass')."::CurrentUser";
for my $to ( grep {defined} ($self->to, $self->to_list) ) {
- next if $to->id == $currentuser_object_class->nobody->id;
+ next if $currentuser_object_class->can("nobody")
+ and $to->id == $currentuser_object_class->nobody->id;
+
next if $to->id == $currentuser_object_class->superuser->id;
+
$self->to($to);
$self->recipients($to);
$self->send_one_message(@_);
More information about the Jifty-commit
mailing list