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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user