Skip to content

Add permission check to LoadIssuesFromBoard #29643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 42 additions & 24 deletions models/fixtures/access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,150 +24,168 @@

-
id: 5
user_id: 2
repo_id: 40
mode: 4

-
id: 6
user_id: 2
repo_id: 41
mode: 4

-
id: 7
user_id: 4
repo_id: 3
mode: 2

-
id: 6
id: 8
user_id: 4
repo_id: 4
mode: 2

-
id: 7
id: 9
user_id: 4
repo_id: 40
mode: 2

-
id: 8
id: 10
user_id: 5
repo_id: 41
mode: 2

-
id: 11
user_id: 10
repo_id: 21
mode: 2

-
id: 9
id: 12
user_id: 10
repo_id: 32
mode: 2

-
id: 10
id: 13
user_id: 15
repo_id: 21
mode: 2

-
id: 11
id: 14
user_id: 15
repo_id: 22
mode: 2

-
id: 12
id: 15
user_id: 15
repo_id: 23
mode: 4

-
id: 13
id: 16
user_id: 15
repo_id: 24
mode: 4

-
id: 14
id: 17
user_id: 15
repo_id: 32
mode: 2

-
id: 15
id: 18
user_id: 18
repo_id: 21
mode: 2

-
id: 16
id: 19
user_id: 18
repo_id: 22
mode: 2

-
id: 17
id: 20
user_id: 18
repo_id: 23
mode: 4

-
id: 18
id: 21
user_id: 18
repo_id: 24
mode: 4

-
id: 19
id: 22
user_id: 20
repo_id: 24
mode: 1

-
id: 20
id: 23
user_id: 20
repo_id: 27
mode: 4

-
id: 21
id: 24
user_id: 20
repo_id: 28
mode: 4

-
id: 22
id: 25
user_id: 29
repo_id: 4
mode: 2

-
id: 23
id: 26
user_id: 29
repo_id: 24
mode: 1

-
id: 24
id: 27
user_id: 31
repo_id: 27
mode: 4

-
id: 25
id: 28
user_id: 31
repo_id: 28
mode: 4

-
id: 26
id: 29
user_id: 38
repo_id: 60
mode: 2

-
id: 27
id: 30
user_id: 38
repo_id: 61
mode: 1

-
id: 28
id: 31
user_id: 39
repo_id: 61
mode: 1

-
id: 29
id: 32
user_id: 40
repo_id: 61
mode: 4
68 changes: 68 additions & 0 deletions models/fixtures/issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -372,3 +372,71 @@
created_unix: 1707270422
updated_unix: 1707270422
is_locked: false

-
id: 23
repo_id: 1
index: 6
poster_id: 2
original_author_id: 0
name: repo1 issue6
content: content for repo1 issue6
milestone_id: 0
priority: 0
is_closed: false
is_pull: false
num_comments: 0
created_unix: 1707270422
updated_unix: 1707270422
is_locked: false

-
id: 24
repo_id: 23
index: 2
poster_id: 2
original_author_id: 0
name: repo1 issue6
content: content for repo1 issue6
milestone_id: 0
priority: 0
is_closed: false
is_pull: false
num_comments: 0
created_unix: 1707270422
updated_unix: 1707270422
is_locked: false

-
id: 25
repo_id: 41
index: 1
poster_id: 2
original_author_id: 0
name: repo41 issue1
content: content for repo41 issue1
milestone_id: 0
priority: 0
is_closed: false
is_pull: false
num_comments: 0
created_unix: 1707270422
updated_unix: 1707270422
is_locked: false

-
id: 26
repo_id: 41
index: 2
poster_id: 2
original_author_id: 0
name: repo41 issue2
content: content for repo41 issue2
milestone_id: 0
priority: 0
is_closed: false
is_pull: false
num_comments: 0
created_unix: 1707270422
updated_unix: 1707270422
is_locked: false
8 changes: 7 additions & 1 deletion models/fixtures/issue_index.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-
group_id: 1
max_index: 5
max_index: 6
-
group_id: 2
max_index: 2
Expand All @@ -10,12 +10,18 @@
-
group_id: 10
max_index: 1
-
group_id: 23
max_index: 2
-
group_id: 32
max_index: 2
-
group_id: 48
max_index: 1
-
group_id: 41
max_index: 2
-
group_id: 42
max_index: 1
Expand Down
48 changes: 48 additions & 0 deletions models/fixtures/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,51 @@
type: 2
created_unix: 1688973000
updated_unix: 1688973000

-
id: 5
title: project on repo23
owner_id: 0
repo_id: 23
is_closed: false
creator_id: 15
board_type: 1
type: 2
created_unix: 1688973000
updated_unix: 1688973000

-
id: 6
title: project on org17
owner_id: 17
repo_id: 0
is_closed: false
creator_id: 15
board_type: 1
type: 2
created_unix: 1688973000
updated_unix: 1688973000

-
id: 7
title: project on private_repo_on_private_org
owner_id: 0
repo_id: 41
is_closed: false
creator_id: 2
board_type: 1
type: 2
created_unix: 1688973000
updated_unix: 1688973000

-
id: 8
title: project on privated_org
owner_id: 23
repo_id: 0
is_closed: false
creator_id: 2
board_type: 1
type: 2
created_unix: 1688973000
updated_unix: 1688973000
32 changes: 32 additions & 0 deletions models/fixtures/project_board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,35 @@
creator_id: 2
created_unix: 1588117528
updated_unix: 1588117528

-
id: 5
project_id: 5
title: Done
creator_id: 15
created_unix: 1588117528
updated_unix: 1588117528

-
id: 6
project_id: 6
title: Done
creator_id: 15
created_unix: 1588117528
updated_unix: 1588117528

-
id: 7
project_id: 7
title: Done
creator_id: 2
created_unix: 1588117528
updated_unix: 1588117528

-
id: 8
project_id: 8
title: Done
creator_id: 2
created_unix: 1588117528
updated_unix: 1588117528
Loading