diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2014-06-04 09:14:22 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2014-06-04 09:14:22 +0300 |
commit | e9b8ea17b86f02d062849be0cccd0b99c095ebd0 (patch) | |
tree | 70f51dc7df069a1ec7d03ef72c9702538ff8acc7 | |
parent | 8e4bdbfbad14b3e59268f2fc8905cb7818f14fa2 (diff) |
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.tmpl | 13 |
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 %] [% bug.bug_id FILTER html %]</b> [%-# %]</a> -<span id="summary_alias_container" class="bz_default_hidden"> [% IF bug.alias != "" %] |