remove unecessary gates for users routes and add UserPolicy

This commit is contained in:
2025-12-17 16:52:43 +01:00
parent 4c3647fe30
commit a0e95aca3e
16 changed files with 30 additions and 19 deletions
@@ -147,7 +147,6 @@ class SearchController extends Controller
public function searchUsers(Request $request)
{
try {
$this->authorize('searchUsers');
try {
$this->client->collections['users']->delete();
} catch (\Exception $e) {