fix: hak akses role - tambah label & cache untuk role other

- Role label: Other (Guest) di tabel permission
- Cache di-clearing untuk role 'other' setelah update
- Semua role dinamis dari controller
This commit is contained in:
Bro
2026-07-24 19:17:15 +07:00
parent 6f33f7712d
commit 89e97c3679
2 changed files with 11 additions and 2 deletions
@@ -69,7 +69,7 @@ class PermissionController extends Controller
}
// Clear cache
foreach (['admin', 'bk', 'wali_kelas', 'staff'] as $role) {
foreach (['admin', 'bk', 'wali_kelas', 'staff', 'other'] as $role) {
Cache::forget('role_permissions:' . $role);
}