aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-06-04 09:14:22 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2014-06-04 09:14:22 +0300
commite9b8ea17b86f02d062849be0cccd0b99c095ebd0 (patch)
tree70f51dc7df069a1ec7d03ef72c9702538ff8acc7
parent8e4bdbfbad14b3e59268f2fc8905cb7818f14fa2 (diff)
downloadbugs.linaro.org-e9b8ea17b86f02d062849be0cccd0b99c095ebd0.tar.gz
private bugs: use the same restricting visibility block logic
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rw-r--r--template/en/default/bug/edit.html.tmpl13
1 files changed, 9 insertions, 4 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index ade1ae3..3971c9c 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -164,11 +164,16 @@
[%# That's the main table, which contains all editable fields. %]
<div class="bz_alias_short_desc_container edit_form">
[% PROCESS commit_button id="_top"%]
- [% user_can_edit_accessible = bug.check_can_change_field("reporter_accessible", 0, 1) %]
- [% IF user_can_edit_accessible %]
- <span style="background-color:red">[PRIVATE]</span>
+ [% inagroup = 0 %]
+ [% FOREACH group = bug.groups %]
+ [% SET inagroup = 1 IF group.ison %]
[% END %]
- <a href="show_bug.cgi?id=[% bug.bug_id %]">
+ [% IF inagroup %]
+ [% user_can_edit_accessible = bug.check_can_change_field("reporter_accessible", 0, 1) %]
+ [% IF user_can_edit_accessible %]
+ <span style="background-color:red">[PRIVATE]</span>
+ [% END %]
+ [% END %] <a href="show_bug.cgi?id=[% bug.bug_id %]">
[%-# %]<b>[% terms.Bug %]&nbsp;[% bug.bug_id FILTER html %]</b>
[%-# %]</a> -<span id="summary_alias_container" class="bz_default_hidden">
[% IF bug.alias != "" %]