Add permission check for moving issue action in project view page (#24589)
Fix #22954 Only users who have write permission can move issues in the project view page.
This commit is contained in:
parent
d5b2bf9044
commit
2ee72d011f
3 changed files with 6 additions and 3 deletions
|
@ -36,7 +36,7 @@ function moveIssue({item, from, to, oldIndex}) {
|
|||
}
|
||||
|
||||
async function initRepoProjectSortable() {
|
||||
const els = document.querySelectorAll('#project-board > .board');
|
||||
const els = document.querySelectorAll('#project-board > .board.sortable');
|
||||
if (!els.length) return;
|
||||
|
||||
const {Sortable} = await import(/* webpackChunkName: "sortable" */'sortablejs');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue