Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-12-20 20:27:41 +0300
committerFatih Acet <acetfatih@gmail.com>2016-12-20 20:27:41 +0300
commit2ccfeefee2b6c433f0be8f648e651eba9e2eca4a (patch)
tree82a13688d940837bc5bb707777cf9122538fa508
parent4909d77d85033cefee3c17af023a0e6b89a46a1c (diff)
parent92af7bfc25bf540fcdd295b3ecfacfa24c5e6d9f (diff)
Merge branch '25093-hide-new-issue-btn-non-loggedin-user' into 'master'
hides new issue btn for not loggedin user ## What does this MR do? This MR closes #25093 #25180 ## Are there points in the code the reviewer needs to double check? NR ## Why was this MR needed? Prevent issue creation for no logged in user and some confusion related to ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [x] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added - Tests - [ ] All builds are passing - [x] Branch has no merge conflicts with `master` (if it does - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? Closes #25093, #25180 See merge request !8175
-rw-r--r--app/views/shared/empty_states/_issues.html.haml2
-rw-r--r--changelogs/unreleased/25093-hide-new-issue-btn-non-loggedin-user.yml4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/shared/empty_states/_issues.html.haml b/app/views/shared/empty_states/_issues.html.haml
index e939278bc07..07d4927b6c9 100644
--- a/app/views/shared/empty_states/_issues.html.haml
+++ b/app/views/shared/empty_states/_issues.html.haml
@@ -8,7 +8,7 @@
= render 'shared/empty_states/icons/issues.svg'
.col-xs-12{ class: "#{'col-sm-6' if has_button}" }
.text-content
- - if has_button
+ - if has_button && current_user
%h4
The Issue Tracker is a good place to add things that need to be improved or solved in a project!
%p
diff --git a/changelogs/unreleased/25093-hide-new-issue-btn-non-loggedin-user.yml b/changelogs/unreleased/25093-hide-new-issue-btn-non-loggedin-user.yml
new file mode 100644
index 00000000000..18836e7a90b
--- /dev/null
+++ b/changelogs/unreleased/25093-hide-new-issue-btn-non-loggedin-user.yml
@@ -0,0 +1,4 @@
+---
+title: Hides new issue button for non loggedin user
+merge_request: 8175
+author: