summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRajat Jain <rjain@gitlab.com>2019-07-02 18:03:45 +0530
committerRajat Jain <rjain@gitlab.com>2019-07-02 23:17:49 +0530
commit2302385cce79b7407d73acccd190f77e55370f04 (patch)
tree759bc06794f26f411d441cbe1961589bc09a0c37 /app
parentc6861b189b7faaf385bd397fd41ba93ed5649f25 (diff)
downloadgitlab-ce-2302385cce79b7407d73acccd190f77e55370f04.tar.gz
Don't let logged out user do manual orderrj-fix-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;
}