In Laravel 11 the Roles are visible and editable to anyone regardless of his rights.
What is weird the rights work perfectly well with any other model
This is my User model:
class User extends Authenticatable implements FilamentUser, MustVerifyEmail
{
use HasFactory, Notifiable;
use HasRoles;
use HasPanelShield;
public function canAccessPanel(Panel $panel): bool
{
return true;
}
public function getFilamentRoles()
{
return $this->roles->pluck('name');
}
}
What do I do wrong? The Rights settings should be available only to the super_admin obviously.
In Laravel 11 the Roles are visible and editable to anyone regardless of his rights.
What is weird the rights work perfectly well with any other model
This is my User model:
What do I do wrong? The Rights settings should be available only to the super_admin obviously.