mirror of
https://github.com/go-gitea/gitea
synced 2025-07-31 22:58:35 +00:00
fix bug about wrong dependencies permissions check and other wr… (#9884)
* fix bug about wrong dependencies permissions check and other wrong permissions check * improve code
This commit is contained in:
committed by
Antoine GIRARD
parent
e3e024876e
commit
c4e0f717e7
@@ -3134,10 +3134,11 @@ function deleteDependencyModal(id, type) {
|
||||
|
||||
function initIssueList() {
|
||||
const repolink = $('#repolink').val();
|
||||
const tp = $('#type').val();
|
||||
$('#new-dependency-drop-list')
|
||||
.dropdown({
|
||||
apiSettings: {
|
||||
url: suburl + '/api/v1/repos/' + repolink + '/issues?q={query}',
|
||||
url: suburl + '/api/v1/repos/' + repolink + '/issues?q={query}&type='+tp,
|
||||
onResponse: function(response) {
|
||||
const filteredResponse = {'success': true, 'results': []};
|
||||
const currIssueId = $('#new-dependency-drop-list').data('issue-id');
|
||||
|
Reference in New Issue
Block a user