Commit 0ce7844
fix(plugins): show Configure/View on legacy plugin depending on project access (#90881)
Unlike integrations, plugins (legacy integrations) have project level
access. This PR adjusts UI to reflect that considering team level roles
as well.
Affects two views:
- projectPlugins:
http://localhost:8000/settings/abc/projects/python-flask/plugins/
- pluginDetailedView:
http://localhost:8000/settings/abc/plugins/redmine/?tab=configurations
This is not a security fix but a frontend bug fix.
# Example
A member has these team-level roles:
<img width="656" alt="image"
src="https://github.com/user-attachments/assets/b2f439d4-c51d-4b7b-a7a2-342fb480cfd1"
/>
## projectPlugins
**Before.** There is no link on "Configure plugin".
<img width="897" alt="image"
src="https://github.com/user-attachments/assets/1abfb051-4cea-4b6e-a272-fe2c579bf554"
/>
**After.** Team contributor has read project-level access to
`python-flask` project, hence "View plugin":
<img width="897" alt="image"
src="https://github.com/user-attachments/assets/82be309f-6d12-4731-a81b-65a7cfdadfee"
/>
## pluginDetailedView
**Before.** Both "Configure" button links are unavailable:
<img width="897" alt="image"
src="https://github.com/user-attachments/assets/171d1f33-d919-48c8-9086-68e74713a12e"
/>
**After.** "Configure" is shown as the user has write permissions on
`go` project, and "View" because of the read permissions on
`python-flask` project.
<img width="897" alt="image"
src="https://github.com/user-attachments/assets/5417cdae-562a-4d2c-93f7-9c5dde45594d"
/>1 parent 9074abc commit 0ce7844
File tree
3 files changed
+54
-52
lines changed- static/app/views/settings
- organizationIntegrations
- projectPlugins
3 files changed
+54
-52
lines changedLines changed: 42 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
167 | 150 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
172 | 167 | | |
173 | 168 | | |
174 | 169 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
251 | 259 | | |
252 | 260 | | |
253 | 261 | | |
| |||
288 | 296 | | |
289 | 297 | | |
290 | 298 | | |
| 299 | + | |
291 | 300 | | |
292 | 301 | | |
293 | 302 | | |
| |||
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
| |||
84 | 82 | | |
85 | 83 | | |
86 | 84 | | |
87 | | - | |
88 | | - | |
89 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
90 | 88 | | |
91 | 89 | | |
92 | 90 | | |
| |||
0 commit comments