- Notifications
You must be signed in to change notification settings - Fork928
Commitfd4954b
authored
fix: Use membership endpoint to ensure user exists in team (#3129)
This was using the incorrect GitHub endpoint prior, which fetched a teamby slug. Any user in a GitHub organization can view all teams, so thisdidn't block signups like intended.I've verified this API returns an error when the calling user is not amember of the team requested.Fixes#3105.1 parent471564d commitfd4954b
3 files changed
+22
-16
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
796 | 796 |
| |
797 | 797 |
| |
798 | 798 |
| |
799 |
| - | |
800 |
| - | |
| 799 | + | |
| 800 | + | |
801 | 801 |
| |
802 | 802 |
| |
803 | 803 |
| |
|
Lines changed: 12 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
75 | 84 |
| |
76 | 85 |
| |
77 |
| - | |
| 86 | + | |
78 | 87 |
| |
79 | 88 |
| |
80 | 89 |
| |
81 | 90 |
| |
82 | 91 |
| |
83 | 92 |
| |
84 | 93 |
| |
85 |
| - | |
| 94 | + | |
86 | 95 |
| |
87 | 96 |
| |
88 | 97 |
| |
| |||
151 | 160 |
| |
152 | 161 |
| |
153 | 162 |
| |
154 |
| - | |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
161 |
| - | |
162 | 163 |
| |
163 | 164 |
| |
164 | 165 |
| |
|
Lines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 |
| - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
92 | 97 |
| |
93 | 98 |
| |
94 | 99 |
| |
| |||
222 | 227 |
| |
223 | 228 |
| |
224 | 229 |
| |
225 |
| - | |
226 |
| - | |
| 230 | + | |
| 231 | + | |
227 | 232 |
| |
228 | 233 |
| |
229 | 234 |
| |
|
0 commit comments
Comments
(0)