You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: