Ajustes varios de permisos y visuales

This commit is contained in:
2025-01-27 08:34:28 -03:00
parent 90bbc3ac7b
commit 509f59ea45
17 changed files with 1606 additions and 1455 deletions

View File

@@ -51,6 +51,7 @@ class Index extends Component
return [
['index' => 'name', 'label' => 'Nombre'],
['index' => 'email', 'label' => 'Email'],
['index' => 'roles', 'label' => 'Roles'],
['index' => 'action', 'label' => 'Acciones'],
];
}
@@ -58,6 +59,6 @@ class Index extends Component
#[Computed]
public function rows(): LengthAwarePaginator
{
return User::paginate();
return User::filterSuperadmin()->with('roles')->paginate();
}
}