Commit 18f3440
fix: update role validation in InviteMembersModal to prevent admin and employee overlap (#1485)
- Modified role checks in InviteMembersModal to ensure that users with the 'employee' role do not also have the 'admin' role when processing invitations.
- This change enhances the invitation logic by preventing potential role conflicts during member invitations.
Additionally, updated posthog-node to version 5.8.2 and @radix-ui/react-toast to version 1.2.15 in bun.lock for improved functionality and stability.
Co-authored-by: Mariano Fuentes <marfuen98@gmail.com>1 parent b91547e commit 18f3440
File tree
2 files changed
+21
-9
lines changed- apps/app/src/app/(app)/[orgId]/people/all/components
2 files changed
+21
-9
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
162 | 163 | | |
163 | | - | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
321 | | - | |
| 322 | + | |
| 323 | + | |
322 | 324 | | |
323 | | - | |
| 325 | + | |
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments