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
path: root/app
diff options
context:
space:
mode:
authorRajat Jain <rjain@gitlab.com>2019-07-02 15:33:45 +0300
committerRajat Jain <rjain@gitlab.com>2019-07-02 20:47:49 +0300
commit2302385cce79b7407d73acccd190f77e55370f04 (patch)
tree759bc06794f26f411d441cbe1961589bc09a0c37 /app
parentc6861b189b7faaf385bd397fd41ba93ed5649f25 (diff)
Don't let logged out user do manual order
Add a check for logged out user in the manual order so that they don't see an flash message when they try to reorder issues.
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/manual_ordering.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/manual_ordering.js b/app/assets/javascripts/manual_ordering.js
index e16ddbfef7e..012d1e70410 100644
--- a/app/assets/javascripts/manual_ordering.js
+++ b/app/assets/javascripts/manual_ordering.js
@@ -21,7 +21,7 @@ const updateIssue = (url, issueList, { move_before_id, move_after_id }) =>
const initManualOrdering = () => {
const issueList = document.querySelector('.manual-ordering');
- if (!issueList || !(gon.features && gon.features.manualSorting)) {
+ if (!issueList || !(gon.features && gon.features.manualSorting) || !(gon.current_user_id > 0)) {
return;
}