Commit 8ae1292
Refactor permission checks, support team_users entity (#23439)
* add more specific doc
* move user permission check to entitiy level
* move role permissions check to entity level
* verify based on role id & fix test
* resolve permission against role name
* Add spacing to section header
* Support team_users entity
* Change teams permission to team
* add endpoint to check username availability
* give self user read permission
* Use new call for user name validation
* Add Icon and Tooltip to indicate restricted access to an entity
* Only link user over item for edit permission
* Adjust shared entity overview and collection owners cell
* Use entity permission for grn
* Remove obsolete import
* Use correct permission
* shared entities: Make sure to use edit permission for team
* Add missing permissions
* check permissions for admin user
* Remove duplicate file and fix license header
* Use list permission in user page navigation tabs
* fix paginated permission check & only return users based on user:read permissioN
* fix unit tests
* add to upgrading md
* Fix tests
* grn check should be against username
* Fix owners cell with global share
* Remove unused import
* Remove permissions around user and teams tabs and user menu item
* format builder
---------
Co-authored-by: Laura Bergenthal-Grotlüschen <[email protected]>
Co-authored-by: Mohamed OULD HOCINE <[email protected]>
Co-authored-by: Ousmane SAMBA <[email protected]>1 parent cb505e3 commit 8ae1292
File tree
33 files changed
+423
-233
lines changed- graylog2-server/src
- main/java/org
- graylog2
- rest
- models/users/responses
- resources/users
- users
- graylog/security
- authzroles
- test/java/org
- graylog2
- users
- graylog/security/authzroles
- graylog2-web-interface/src
- components
- common
- Icon
- Section
- roles/RoleEdit
- users
- UserCreate
- UserDetails
- UserEdit
- UsersOverview/UserOverviewItem
- logic/permissions
- pages
- routing/hooks
- stores/users
33 files changed
+423
-233
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
Lines changed: 17 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | | - | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
| |||
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 127 | + | |
| 128 | + | |
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
| |||
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
140 | | - | |
141 | 138 | | |
142 | 139 | | |
143 | 140 | | |
| |||
158 | 155 | | |
159 | 156 | | |
160 | 157 | | |
161 | | - | |
162 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
163 | 162 | | |
164 | | - | |
| 163 | + | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
| |||
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
177 | 180 | | |
178 | 181 | | |
179 | 182 | | |
| |||
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
190 | | - | |
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| |||
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| 213 | + | |
211 | 214 | | |
212 | 215 | | |
213 | | - | |
214 | | - | |
| 216 | + | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
| |||
283 | 286 | | |
284 | 287 | | |
285 | 288 | | |
286 | | - | |
| 289 | + | |
| 290 | + | |
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
| |||
Lines changed: 5 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 81 | + | |
91 | 82 | | |
92 | 83 | | |
93 | 84 | | |
94 | 85 | | |
95 | 86 | | |
96 | 87 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 88 | + | |
111 | 89 | | |
112 | 90 | | |
113 | | - | |
| 91 | + | |
| 92 | + | |
114 | 93 | | |
115 | 94 | | |
116 | 95 | | |
| |||
121 | 100 | | |
122 | 101 | | |
123 | 102 | | |
124 | | - | |
| 103 | + | |
125 | 104 | | |
126 | 105 | | |
127 | 106 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments