Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
b3389a8c
Commit
b3389a8c
authored
Jul 22, 2007
by
timeless%mozdev.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 365302 email userprefs doesn't tell you if you are a globalwatcher
r=lpsolit a=lpsolit
parent
9cd59148
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
User.pm
Bugzilla/User.pm
+15
-0
email.html.tmpl
template/en/default/account/prefs/email.html.tmpl
+10
-0
No files found.
Bugzilla/User.pm
View file @
b3389a8c
...
...
@@ -1513,6 +1513,16 @@ sub is_insider {
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
;
...
...
@@ -2055,6 +2065,11 @@ moving is enabled.
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
...
...
template/en/default/account/prefs/email.html.tmpl
View file @
b3389a8c
...
...
@@ -100,6 +100,16 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb
<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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment