From c0dd51d4d3f83015d77db8a6cc2958aa6fccc09c Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 6 Aug 2014 15:05:03 +0800 Subject: Bug 1049329: fix width of user_story field, and hide label for anon access when no story is set --- .../template/en/default/hook/bug/comments-comment_banner.html.tmpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'extensions/UserStory') diff --git a/extensions/UserStory/template/en/default/hook/bug/comments-comment_banner.html.tmpl b/extensions/UserStory/template/en/default/hook/bug/comments-comment_banner.html.tmpl index c7c202d62..6a7770066 100644 --- a/extensions/UserStory/template/en/default/hook/bug/comments-comment_banner.html.tmpl +++ b/extensions/UserStory/template/en/default/hook/bug/comments-comment_banner.html.tmpl @@ -7,6 +7,7 @@ #%] [% RETURN UNLESS bug.user_story_visible.0 %] +[% RETURN IF user.id == 0 && bug.cf_user_story == "" %] [% can_edit_story = bug.check_can_change_field('cf_user_story', 0, 1) %]
@@ -29,7 +30,9 @@ (edit) [% END %] - [% IF bug.cf_user_story != "" %] + [% IF user.id + && bug.cf_user_story != "" + && bug.check_can_change_field('longdesc', 0, 1) %] [