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
+2
View File
@@ -29,6 +29,8 @@ class User extends Authenticatable
public function isBK(): bool { return $this->role === 'bk'; }
public function isWaliKelas(): bool { return $this->role === 'wali_kelas'; }
public function isStaff(): bool { return $this->role === 'staff'; }
public function isOther(): bool { return $this->role === 'other'; }
public function isStaff(): bool { return $this->role === 'staff'; }
public function canPermission(string $permission): bool
{