return $self->{'is_insider'};
}
+sub is_global_watcher {
+ my $self = shift;
+
+ if (!defined $self->{'is_global_watcher'}) {
+ my @watchers = split(/[,\s]+/, Bugzilla->params->{'globalwatchers'});
+ $self->{'is_global_watcher'} = grep { $_ eq $self->login } @watchers;
+ }
+ return $self->{'is_global_watcher'};
+}
+
sub get_userlist {
my $self = shift;
Returns true if the user can access private comments and attachments,
i.e. if the 'insidergroup' parameter is set and the user belongs to this group.
+=item C<is_global_watcher>
+
+Returns true if the user is a global watcher,
+i.e. if the 'globalwatchers' parameter contains the user.
+
=back
=head1 CLASS FUNCTIONS
<br>
</td>
</tr>
+[% IF user.is_global_watcher %]
+ <tr>
+ <td width="150"></td>
+ <td>
+ You are watching all [% terms.bugs %]. To be removed from this role,
+ contact
+ <a href="mailto:[% Param("maintainer") %]">[% Param("maintainer") %]</a>.
+ </td>
+ </tr>
+[% END %]
</table>
<hr>