Commit Graph

4 Commits

Author SHA1 Message Date
a5074282aa Fix role permission saving: use admin's modules instead of target role's restricted list 2026-07-01 09:48:52 +08:00
50ad5f45eb fix: resolve permission/role cache not reflecting issues
- UserController: use Spatie syncRoles([$role]) instead of direct Eloquent relations relation sync() which bypassed Spatie model events and cache observers
- RoleController: explicitly call forgetCachedPermissions() on store and update to force cache refresh
- Clear application cache
2026-06-30 16:44:13 +08:00
7b0605a705 employee role seed 2026-04-13 14:53:10 +08:00
273c8e8153 initial commit 2026-04-13 08:16:56 +08:00