feat: tambah role 'other' untuk guest user

- PermissionController: tambah 'other' ke daftar role
- UserController validasi: in:admin,bk,wali_kelas,staff,other
- User model: helper isOther()
- Users view: filter dropdown + modal tambah user + label
- Role 'other' bisa diatur hak aksesnya di menu Hak Akses Role
This commit is contained in:
Bro
2026-07-24 19:05:50 +07:00
parent 5c0c3bdd48
commit 243a609baf
4 changed files with 7 additions and 3 deletions
@@ -19,7 +19,7 @@ class PermissionController extends Controller
->get()
->groupBy('group');
$roles = ['admin', 'bk', 'wali_kelas', 'staff'];
$roles = ['admin', 'bk', 'wali_kelas', 'staff', 'other'];
$rolePermissions = [];
foreach ($roles as $role) {