diff options
author | Rajat Jain <rjain@gitlab.com> | 2019-07-02 18:03:45 +0530 |
---|---|---|
committer | Rajat Jain <rjain@gitlab.com> | 2019-07-02 23:17:49 +0530 |
commit | 2302385cce79b7407d73acccd190f77e55370f04 (patch) | |
tree | 759bc06794f26f411d441cbe1961589bc09a0c37 /app | |
parent | c6861b189b7faaf385bd397fd41ba93ed5649f25 (diff) | |
download | gitlab-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.js | 2 |
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; } |