diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/UserStory/template/en/default/hook/bug/comments-comment_banner.html.tmpl | 5 |
1 files changed, 4 insertions, 1 deletions
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) %] <div class="user_story"> @@ -29,7 +30,9 @@ (<a href="javascript:void(0)" id="user_story_edit_action" >edit</a>) </span> [% END %] - [% IF bug.cf_user_story != "" %] + [% IF user.id + && bug.cf_user_story != "" + && bug.check_can_change_field('longdesc', 0, 1) %] <span id="user_story_comment"> [<a class="bz_reply_link" href="#user_story_comment" onclick="userStoryComment(); return false;" |