mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	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:
		@@ -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');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user