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