Commit a1883f6
fix: close access control gaps in restrictAccess and admin user actions (wd-u7r)
1. Uncomment redirectTo in restrictAccess() so non-Editor/Admin users are
actually redirected away instead of silently proceeding to protected actions.
2. Remove unlockUser,toggleUserLock from checkAdminAccess except list so these
admin-only operations require admin role instead of just authentication.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 44fa57d commit a1883f6
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments